Commit Graph

370 Commits

Author SHA1 Message Date
Nick Foster
c866dc9d31 How did this go so long without being fixed? Range and bearing were asymptotic due to -- get this -- degree/radian confusion. 2012-07-16 14:35:43 -07:00
Nick Foster
dbab4f0142 Don't populate lat/lon by default 2012-07-16 10:49:54 -07:00
Nick Foster
4fbda15afc Merge branch 'parse' into qtapp
Conflicts:
	python/modes_parse.py
2012-07-16 09:40:05 -07:00
Nick Foster
c2129e0eab Default RTL gain of 35 and parser catches negative shifts generated by invalid packets. 2012-07-16 09:36:15 -07:00
Nick Foster
4750d20044 Parser returns objects for subfields instead of flat data. Lets you use get_type to resolve BDS registers, etc.
Printer takes advantage of this. Now printing BDS reg instead of "subtype".
2012-07-16 09:27:18 -07:00
Nick Foster
cb4c91aee1 Altitude now taken from types 4, 5, 20 short replies as well, for ADS-B-equipped aircraft. Bearing/heading updated real-time.
TODO: figure out how to filter aircraft list for ADS-B-equipped aircraft only
2012-07-15 12:59:41 -07:00
Nick Foster
923651f69a Heading widget updates correctly. 2012-07-14 22:24:18 -07:00
Nick Foster
86a7bbbb2a Selections are persistent when rows inserted, rows automatically prune when 60s w/o reply 2012-07-14 21:38:06 -07:00
Nick Foster
372e925277 Well, the ICAO lineedit works in hex now, but I don't like the way it went in. 2012-07-14 15:43:09 -07:00
Nick Foster
20dd8457ea Dashboard mostly works. ICAO view now prints ident if available.
TODO:
draw selection in list view delegate
maintain selection on insert rows (emit beginInsertRows/endInsertRows)
fix heading widget so it updates correctly (something in the DataWidgetMapper that you aren't doing)
2012-07-14 14:44:36 -07:00
Nick Foster
70b099a05e Revert SQL changes and use a separate, non-db datamodel for the dashboard display. 2012-07-13 09:43:22 -07:00
Nick Foster
0a1d863f5f SQL parser modified to use flat aircraft table. This breaks KML horribly and eventually you should integrate the flat table into the GUI app and revert to the old method for the KML generator. 2012-07-12 00:02:11 -07:00
Nick Foster
5c0ccaa833 Split out the data model because I'm using a flat SQL table for the dashboard now. Most everything hooked up. 2012-07-11 19:18:40 -07:00
Nick Foster
19b7061247 Other fields entered. 2012-07-11 12:55:30 -07:00
Nick Foster
96db9a9608 today nick learns about the QDataWidgetMapper, which solves all his problems 2012-07-11 09:15:05 -07:00
Nick Foster
855535644f Using a delegate instead for coloring. Text color works but we don't get nice highlighting. Wish we could alter the painter and use the default paint(). 2012-07-10 16:08:24 -07:00
Nick Foster
ed006f71b5 I'm pretty sure custom painting should be handled with delegates and not a subclassed QListView 2012-07-10 09:27:36 -07:00
Nick Foster
2eb7426688 Using QtSql instead of sqlite3 to access data -- might change this back but trying to set up a good data model.
Also subclassed QListView so we can eventually implement fading by age in the list view.
2012-07-10 09:17:53 -07:00
Nick Foster
f2f344538a Added in speed/vs fetching. Need to figure out your datamodel. 2012-07-07 11:32:32 -07:00
Nick Foster
8439e0e5f3 Parser and error-handling changes. 2012-07-07 11:04:49 -07:00
Nick Foster
b4cafe0384 Setting up a model-view display for the airframe list. 2012-07-05 23:52:00 -07:00
Nick Foster
8cd551689b Forgot to modify UI import in GUI app 2012-07-05 11:10:27 -07:00
Nick Foster
ec70a90bd5 CMake magic to find PyQt4 and build the main GUI from .ui. Also renamed uhd_modes.py -> modes_rx, and the GUI app -> modes_gui 2012-07-05 11:00:52 -07:00
Nick Foster
a853077bc2 Live data display works. 2012-07-03 19:21:42 -07:00
Nick Foster
113c23b634 Everything is basically in place for at least live text. For some reason spawning the flowgraph is broken. 2012-07-03 09:40:26 -07:00
Nick Foster
3b533f6b35 First stab at Qt app (imaginatively named testmain.py). Interface laid out and basic behavior working. 2012-07-02 18:55:05 -07:00
Nick Foster
fe6aa0c6de Fix error handling for data construct on init. 2012-07-02 07:17:21 -07:00
Nick Foster
19436349dc Parser is even bitchin'er. Now flattens the dict on init recursively so fields are automatically populated. 2012-06-30 14:31:20 -07:00
Nick Foster
57f7bc84fc Fixing TCAS reports. Types 20 and 21 still bomb because apparently MB field is optional -- the only type 20s I see are short packets. 2012-06-29 09:32:58 -07:00
Nick Foster
28824cb0b2 New parser works. TCAS untested. Extra info in print. Fixed ground_track printing error. Surface reports suppressed due to possible CPR bug. Not all code paths tested. 2012-06-26 23:27:58 -07:00
Nick Foster
b05bea9618 Parser and printer for type 20 and TCAS info 2012-06-26 19:25:31 -07:00
Nick Foster
cf8f429900 Cleaned up the print module, minor changes to parse and FGFS module. Untested. 2012-06-26 15:37:20 -07:00
Nick Foster
067556cbdd Fields eliminated, type includes field data. Subfields also gone. 2012-06-26 09:46:21 -07:00
Nick Foster
0a1c49f1fc Check for unfilled SBS1 message before sending. 2012-06-26 07:46:32 -07:00
Nick Foster
6a76ec8250 Temp commit before changing new parser to eliminate "fields" 2012-06-25 23:09:11 -07:00
Nick Foster
13c98cada7 Fix SBS-1 output module (hopefully). 2012-06-25 17:33:40 -07:00
Nick Foster
e174091763 Temp commit 2012-06-25 17:25:57 -07:00
Nick Foster
3d2920b56a Flightgear interface for new parser, minus BDS0,9 2012-06-23 19:29:51 -07:00
Nick Foster
f928669094 Found the no handler thing 2012-06-23 17:55:17 -07:00
Nick Foster
03b41f14be It works, still some bugs. 2012-06-23 17:26:47 -07:00
Nick Foster
b7cc18c41f More parser work, type 17 done except for BDS0,9 velocity subtypes 2012-06-23 14:25:26 -07:00
Nick Foster
a45531b15c Additional work toward new parser. Added fields for extended squitter. 2012-06-22 17:28:55 -07:00
Nick Foster
ba153e52ed Completely rewrote parser, everything is broken 2012-06-21 23:45:49 -07:00
Nick Foster
0494eb5b18 Extended test case for CPR calculator to use different odd/even locations 2012-06-20 18:57:01 -07:00
Nick Foster
b29d049d7d Raise no handler exception in SBS-1 when there's no handler for messages. 2012-06-20 11:53:28 -07:00
Nick Foster
c985bd4e89 fix SQL bug in new exception handling 2012-06-19 23:12:57 -07:00
Nick Foster
66171b62cc Implemented metric altitude decoding but left it commented and throwing an exception by default. 2012-06-19 19:17:33 -07:00
Nick Foster
db62aaf399 First stab at using real exception handling instead of returning [None] everywhere 2012-06-19 18:49:42 -07:00
Nick Foster
e3ac472a1a Move multilateration test code into mlat.py 2012-06-18 18:43:53 -07:00
Nick Foster
8b747e23da Fix language in README. 2012-06-18 18:41:34 -07:00