summaryrefslogtreecommitdiff
path: root/altosui/AltosSerial.java
Commit message (Collapse)AuthorAge
* Reverted package name to 'altosui' from 'AltosUI'Tom Marble2012-09-11
| | | | Also added emacs backup regex (*~) to .gitignore
* Changed package name from altosui to AltosUITom Marble2012-09-10
|
* altosui: Move 'implements Runnable' from AltosSerial to AltosLinkKeith Packard2012-08-04
| | | | | | AltosLink is the class providing the 'run' method, after all... Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Handle Monitor Idle errors betterKeith Packard2012-07-29
| | | | | | | | Deal with missing data by checking for MISSING in more places. Handle serial communication failures during send by reporting back from libaltos. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Move serial datastream parser to altoslibKeith Packard2012-07-16
| | | | | | instead of having it in altosui Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Abstract remote connection timeout stuffKeith Packard2012-07-11
| | | | | | | This moves some of the logic for managing when to present the 'cancel' dialog for remote operations to altoslib. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: AltosSerial and AltosLink both tried to provide frequency settingKeith Packard2012-06-26
| | | | | | | | AltosLink owns all of the device configuration, so remove that from AltosSerial and make sure that AltosLink provides the right function signatures (wasn't using the new direct frequency setting command). Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: More cleanups for moving files to altoslibKeith Packard2012-06-04
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Clean up random rebase failuresKeith Packard2012-06-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Move telemetry reader &c to altoslibKeith Packard2012-06-02
| | | | | | Move all of the device and file reading code into altoslib Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Pull most of AltosSerial into AltosLinkKeith Packard2012-06-02
| | | | | | Share basic command processing across java users Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Move AltosConfigData.java to libraryKeith Packard2012-06-02
| | | | | | | Create a new 'AltosLink' which exposes how to talk to the remote device abstractly via 'get_reply' and 'printf' methods. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Complete split out of separate java libraryKeith Packard2012-06-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Split out UI-specific preferencesKeith Packard2012-06-02
| | | | | | Prepare to create library shared with android application. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Make 'monitor idle' work with older TeleMetrum firmware (trac #28)Keith Packard2012-03-27
| | | | | | | | Older TM firmware did not have the 'done' line at the end of the GPS report, rather it would just stop after showing the Flags value. Check the TM version and stop looking for GPS data when the Flags line appears. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Catch attempt to set radio frequency to 0.0 -- use defaultKeith Packard2012-03-27
| | | | | | | | | Monitor idle was setting the frequency to 0, which takes a while with the new native radio frequency setting code. Don't do that, instead pull out the preferred frequency for that, as is done in other places where a frequency of 0.0 is used. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Configure radio with new direct frequency settingKeith Packard2012-03-27
| | | | | | Instead of computing the radio setting in altosui, let the radio do it directly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Report error message back from libaltosKeith Packard2011-08-28
| | | | | | | This includes changing all of the error dialogs to show the error message rather than just the file name. Signed-off-by: Keith Packard <keithp@keithp.com>
* 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>