summaryrefslogtreecommitdiff
path: root/altoslib/AltosLink.java
Commit message (Collapse)AuthorAge
* altoslib: Bump library versionKeith Packard2013-12-20
| | | | | | | Prepare for next release by making sure we notice that the API/ABI for this library has changed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Pass InterruptedException up the stack instead of hiding itKeith Packard2013-12-18
| | | | | | | | | | When interrupting a thread that is talking to a serial device, it's important not to have that thread discard the InterruptedException so that it will actually terminate. This patch removes a bunch of places that were discarding InterruptedExceptions and lets higher level code see them so that they can exit cleanly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Support binary reading/writing in AltosLinkKeith Packard2013-12-08
| | | | | | | Binary reads require an explicit length, and do not work while telemetry is running. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Lock access to AltosLink config_dataKeith Packard2013-09-06
| | | | | | | Prevents multiple callers from trying to get config data at the same time and messing up the serial line Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Finish AltosState changes. Update version number.Keith Packard2013-09-05
| | | | | | | Removes all of the AltosRecord bits, changes the monitor idle bits to have per-object state updaters. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui: Carry receiver status around in AltosListenerStateKeith Packard2013-04-09
| | | | | | | | | | This moves the crc_errors into the new structure and adds a receiver battery voltage value there as well. Now the receiver status can be monitored separately from the flight status. That also means that code receiving state updates should be prepared to accept missing listener or flight state values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Interrupt MonitorIdle when changing frequency/callsignKeith Packard2013-02-10
| | | | | | | | When switching radio parameters, the local device needs to have the parameters switched, so interrupt the current operation and start over, the frequency and callsign will be set the next time through. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add version numbers to java librariesKeith Packard2013-01-29
| | | | | | | Make our private java library names include a version number so we can ship and install multiple versions at the same time. Signed-off-by: Keith Packard <keithp@keithp.com>
* Change AltosLib to altoslibKeith Packard2013-01-29
| | | | | | Follow Java conventions Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: unconfigured radio frequency data is now -1, not 0Keith Packard2012-12-16
| | | | | | | This changed when AltosConfigData was cleaned up, so now frequency settings must check for positive numbers rather than non-zero. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove un-needed importsMike Beattie2012-09-07
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* 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>
* Move altoslib sources to top dirKeith Packard2012-06-02
No sense having them live deep in the file system. Signed-off-by: Keith Packard <keithp@keithp.com>