summaryrefslogtreecommitdiff
path: root/altosui
Commit message (Collapse)AuthorAge
...
* altosui: Have single radio_to_frequency functionKeith Packard2011-08-08
| | | | | | | This takes all three radio params (setting, cal, channel) and computes the current frequency. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: A few misc cleanups.Keith Packard2011-08-08
| | | | | | | Initialize radio_setting as it won't be set for older devices ever. Remove unused set_radio_frequency function from AltosConfigUI. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Must set radio calibration before radio settingKeith Packard2011-08-08
| | | | | | | | | | | Setting the radio calibration erases any previous radio setting as the radio calibration change invalidates any previously computed radio setting for a specific frequency. Hence, the radio setting must be configured *after* the radio calibration value lest it be ignored. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Pull out BlueTooth supportKeith Packard2011-08-08
| | | | | | | This leaves the code in place, but commented out so that it isn't used until we've got a bluetooth device ready for use. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: altimeter is not spelled altimterKeith Packard2011-08-08
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Convert from channels to frequenciesKeith Packard2011-08-08
| | | | | | | | | | | | | Major areas: * Preferences are stored as frequencies instead of channels * Serial configuration is done using frequencies * UI is presented with frequency lists Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add dialogs to configure 'common' frequenciesKeith Packard2011-08-08
| | | | | | | These are stored in preferences, but not yet hooked up to the TM/TD configure dialogs Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Change button to 'Configure Altimeter'Keith Packard2011-08-08
| | | | | | Now that we've got more than one model. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/altosui: Add pad orientation configure optionKeith Packard2011-08-02
| | | | | | | | | | | Allow TeleMetrum to be operated with the antenna pointing downwards on the pad. This provides some additional flexibility when designing an ebay. The accelerometer calibration levels are flipped around to match, so no re-calibration should be required. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add idle monitor dialogKeith Packard2011-08-02
| | | | | | | | This monitors a telemetrum device in idle mode, either directly or through a teledongle, allowing the GPS status and batteries to be monitored without resorting to placing the device in pad mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Simple timeouts don't work with query dataKeith Packard2011-08-02
| | | | | | | | To get the query to come back, it's best to abort and retry the command, other wise the command may have been lost to the previous connection. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Parse accel cal from 'c s' commandKeith Packard2011-08-02
| | | | | | | These fields weren't used before, so the code to parse them hadn't been written. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Standard text field in flight UI needs more width (now 20)Keith Packard2011-08-02
| | | | | | Latitude and longitude take more than 16 characters. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Change continutity colors to yellow/magentaKeith Packard2011-07-17
| | | | | | Makes them stand apart from the accel/speed lines Signed-off-by: Keith Packard <keithp@keithp.com>
* Add HARA Bragg Farms siteKeith Packard2011-07-17
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Fix NCR Pawnee locationKeith Packard2011-07-17
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Mark preload site location with red circles (like launch)Keith Packard2011-07-17
| | | | | | Just to show where on the map the official launch location is. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add a bunch more site locationsKeith Packard2011-07-17
| | | | | | BALLS, Rio Rancho, METRA, QRS Cedar Grove and Hudson Ranch Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add launch-sites.txtKeith Packard2011-07-17
| | | | | | Contains a few of our favorites. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Download list of site locations for map preloadingKeith Packard2011-07-17
| | | | | | | | | | | | The current URL for this is: http://gag.com/~keithp/launch-sites.txt The format is: <site-name>:<lat>:<lon> lat and lon are both in signed decimal degrees. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'preload-maps'Keith Packard2011-07-17
|\
| * altosui: Make sure degree and minute values are visible (map preload)Anthony Towns2011-07-16
| | | | | | | | | | | | | | Set min size to preferred size so that the value remains visible instead of snapping to 0 pixels wide. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosui: Remove a bunch of sitemap debugging printfsKeith Packard2011-07-16
| | | | | | | | | | | | Seems to work, let's get less chatty Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosui: Display full map preload area in view.Keith Packard2011-07-16
| | | | | | | | | | | | | | | | This involved fixing the map view to support arbitrary sizes, and then exposing a synchronous tile loading API so that the progress bar could be used to show tile loading progress. Signed-off-by: Keith Packard <keithp@keithp.com>
| * Merge branch 'scan-telemetry' into preload-mapsKeith Packard2011-07-16
| |\
| | * altosui: Flush telemetry lines before starting to watch for scan resultsKeith Packard2011-07-16
| | | | | | | | | | | | | | | | | | | | | This prevents pending telemetry lines from being incorrectly attributed to the wrong channel/telemetry. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altosui: Try to avoid resize weirdness with map preloadingKeith Packard2011-07-16
| | | | | | | | | | | | | | | | | | | | | grid bag + box does some strange stuff, this appears to avoid the worst of the interactions. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altosui: Add map preloading GUIKeith Packard2011-07-16
| |/ | | | | | | | | | | | | | | Provide a way to manually enter latitude and longitude, preview the map area while downloading a 9x9 grid of map tiles to be used when monitoring flights without network access. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosui: Set 'seen' bits in legacy telemetry packet readerKeith Packard2011-07-16
| | | | | | | | | | | | Otherwise, the 'scan' code won't show detected flight computers. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosui: Initialize channel and telemetry before use in ScanUIKeith Packard2011-07-16
| | | | | | | | | | | | Otherwise we try to use telemetry format 0, which means 'no telemetry'. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosui: Generalize and centralize telemetry constants, parse v0.8 telemetryKeith Packard2011-07-16
| | | | | | | | | | | | | | | | | | | | Move telemetry constants to Altos class, adding functions to compute names and lengths. Generalize users of these values to use all of the known values. Add support for v0.8 TeleMetrum telemetry Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosui: Finish radio scanning UIKeith Packard2011-07-16
| | | | | | | | | | | | | | | | Scans all channels and telemetry formats, presenting visible devices in a list. Entries from the list may be selected, in which case a monitor window pops up with the appropriate configuration. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosui: Configuration telemetry record includes flight numberKeith Packard2011-07-16
| | | | | | | | | | | | Mark the reported altos record as including flight information. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosui: Remove debugging printf from AltosLogKeith Packard2011-07-16
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosui: Pop up monitor window from scan dialogKeith Packard2011-07-16
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosui: Start adding support for scanning radio for available devicesKeith Packard2011-07-16
| | | | | | | | | | | | This is untested. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos, altosui: Add igniter mode (dual, apogee, main)split-telemetryKeith Packard2011-07-17
|/ | | | | | This provides for redundant charges for either apogee or main. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Don't show missing igniter and gps valuesKeith Packard2011-07-06
| | | | | | | | | | | The new telemetry stuff leaves state.gps always set (but empty), which seems fine, we just need to look at state.gps.connected to see if there's a GPS receiver on board. For TeleNano, we also want to hide the igniter status fields as they won't have any data present. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Build device constants into .java codeKeith Packard2011-07-06
| | | | | | | | This eliminates a depedency on updates to the system helper library, which means we don't have to provide a new library on all platforms just to support a new USB id. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Compress telemetry records marked with the same timeKeith Packard2011-07-05
| | | | | | | Split telemetry transmits multiple packets with the same timestamp. Merge those into a single record when read from a file. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Remove debug printf.Keith Packard2011-07-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add main/drogue voltages to default graphKeith Packard2011-07-05
| | | | | | | Until we get a UI for changing the graph elements, lets add a few more potentially useful values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Elide missing values from graphsKeith Packard2011-07-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Elide nul bytes at end of telemetry string valuesKeith Packard2011-07-05
| | | | | | | All telemetry fields are fixed length, so any embedded strings are padded with nul bytes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Parse remaining standard telemetry packetsKeith Packard2011-07-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Support raw telemetry from TeleDongleKeith Packard2011-06-28
| | | | | | | | | Use raw telemetry frames when TeleDongle supports them, this involves parsing the hex dump of the packet instead of having teledongle take the packet apart. Only the legacy format is working at this point; the altos bits for the new split telemetry frames is not written yet. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Handle old TeleDongle receiving kalman telemetry packetsKeith Packard2011-06-02
| | | | | | | | | | | The telemetry packets now send the kalman height/speed/accel values instead of the ad-hoc values. If received by an old TeleDongle box, the speed value will be of the form 0x8000abcd, which will be printed as a 32-bit value by TeleDongle. We only want the abcd part, which is the speed * 16. Detect this automatically and compute the correct values for all three. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Fix BT manage dialog so that the device lists resizeKeith Packard2011-04-25
| | | | | | | This makes the device scrolling lists fill any extra space when the window is resized. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Move AltosIgniteUI device open out of Swing threadKeith Packard2011-04-25
| | | | | | Eliminate more blocking code from the Swing thread. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Display reader name (usually the device) when an I/O error occursKeith Packard2011-04-25
| | | | | | | Access the reader name directly from the reader object instead of a local variable (which wasn't getting set anyways). Signed-off-by: Keith Packard <keithp@keithp.com>