summaryrefslogtreecommitdiff
path: root/altosui/AltosSerial.java
Commit message (Collapse)AuthorAge
* altosui: don't set channel when using radio settingKeith Packard2011-08-14
| | | | | | | altos now sets the radio back to channel 0 when the radio setting is changed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: AltosSerial.flush_input shouldn't discard Interrupted exceptionsKeith Packard2011-08-13
| | | | | | | | The eeprom download code wants to interrupt serial communication so that it can stop downloading stuff in the middle of a run. Make flush_input pass the exception along instead of discarding it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Ensure serial code tracks reply nesting correctlyKeith Packard2011-08-09
| | | | | | | Trap any exceptional return conditions from 'get_reply' to make sure in_reply gets decremented. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Reading serial from swing thread only bad if remoteKeith Packard2011-08-08
| | | | | | Make the warning on this condition based on whether the link is remote. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Flush radio setting to serial deviceKeith Packard2011-08-08
| | | | | | When changing frequencies, make sure the device hears about it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Remove debugging printfs from AltosSerialKeith 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>
* 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: 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: 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>
* 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: 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: Create abstract AltosDevice classKeith Packard2011-04-14
| | | | | | | This will wrap either USB or BT devices. The USB device constants have been moved to Altos.java Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Clean up packet link connecting dialogKeith Packard2011-03-28
| | | | | | | | | | | | | | Make sure the dialog is destroyed after use (otherwise, it hangs around on the screen sometimes). Switch timeout before showing dialog to 500ms -- that brings the dialog up less often when unnecessary. Use 'timeout_started' boolean to indicate whether the I/O thread has queued the dialog for display and whether it needs to queue a call to close it down. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Handle serial calls from swing threadKeith Packard2011-03-27
| | | | | | | | Calls from the swing thread cannot be canceled as there's no way to put up the cancel dialog. In this case, simply use the 5 second timeout and fail if no communication occurs within that amount of time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Allow TM config connection to be canceled.Keith Packard2011-03-26
| | | | | | | | | This leaves the config UI connection attempt running and pops up a dialog box when it takes 'too long' in the remote case so that users with Tm or Tn devices can bring up the UI, and then boot the Tm/Tn without needing to time things carefully. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add telemetry format menu and preferencesKeith Packard2011-03-24
| | | | | | | | Switches the TeleDongle between full and tiny telemetry packet formats, saving the last used format for each teledongle in the application preferences. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Use long input flush timeout when remote.Keith Packard2011-01-16
| | | | | | | 100ms isn't long enough to capture pending remote serial input, so use 300 ms in that mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Make serial debug more complete and accurateKeith Packard2011-01-16
| | | | | | | | Display all serial input, including telemetry. Wait to display serial output until flush time, to debug missing flushing. Show when devices are opened and closed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add preference for serial debugging.Keith Packard2011-01-14
| | | | | | This dumps serial input/output to stdout. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Ensure serial line is flushed after disabling remote linkKeith Packard2011-01-14
| | | | | | Flush the '~' character. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add support for parsing list of flights from the 'l' commandKeith Packard2011-01-11
| | | | | | | This adds parsing support to enumerate the available flights, but does not yet provide any UI to use it. Signed-off-by: Keith Packard <keithp@keithp.com>
* Move altosui to the top level, placing libaltos inside it.Keith Packard2010-11-24
Signed-off-by: Keith Packard <keithp@keithp.com>