summaryrefslogtreecommitdiff
path: root/altosdroid/src
Commit message (Collapse)AuthorAge
...
* altosdroid: Add USB support for TeleDongle/TeleBTKeith Packard2015-04-27
| | | | | | This lets AltosDroid use a USB-connected receiver as well as Bluetooth devices. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Deal with bluetooth connection failures betterKeith Packard2015-03-07
| | | | | | | | | | | | | | | | | | | | | Remember when we've closed the bluetooth connection so that we stop operations, including reporting connection status messages or even starting a connection attempt. Pass the AltosBluetooth object back in connection status messages so that TelemetryService can tell when messages from closed objects get delivered. There's a queue between the two, so the above fix catches most of these instances, but not all of them. Stick a delay during reconnect -- if the TeleBT device is getting power-cycled, it will need a few seconds to reconfigure the device at startup, if AltosDroid manages to connect during that time, the configuration commands will be ignored. Unlock the AltosBluetooth device while we connect so that cancel calls will actually work. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Ignore automatic tab changing while activity is savedKeith Packard2015-02-16
| | | | | | | | | | When the activity state is saved (after onSaveInstanceState()), we can't update the UI until the activity is restarted or restored; that means any UI changes we make, like switching tabs, must deal with this by allowing those changes to be ignored, using commitAllowingStateLoss instead of commit. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Missing file: DeviceAddress.javaKeith Packard2015-02-16
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Only speak when GUI is runningKeith Packard2015-02-16
| | | | | | | Create voice in onStart, stop it in onStop. This way, if some other application is in use, the voice won't be annoying you. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Explicitly disconnect BT on termination or 'disconnect'Keith Packard2015-02-16
| | | | | | | | | | This adds an explicit message to the telemetry service telling it when to stop trying to talk to the bluetooth device. Until this message is received, the service will reconnect to the specified BT device. That message is sent when you 'quit' the application, or when you 'disconnect'. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Lots of bluetooth connection changesKeith Packard2015-02-16
| | | | | | | | | | | | | Appears to more reliably abort in-progress connection attempts so you can switch TBT devices without having the previous device in operation. Shows which device the connection is being attempted for. Eliminate the 10-second timer and just disable the service when the GUI shuts down while no BT connection is running. Signed-off-by: Keith Packard <keithp@keithp.com>
* Bump java library versionsKeith Packard2015-02-07
| | | | | | | Lots of minor API/ABI changes; make sure people can install both 1.5 and 1.6 at the same time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: East and West were flipped in all GPS outputKeith Packard2014-11-16
| | | | | | East is positive, West is negative Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Save AltosState and restore at startupKeith Packard2014-11-15
| | | | | | | | | Instead of re-parsing the old logfile, save the current state in the preferences database and restore at restart of the TelemetryService. This makes the state get restored even before the BT connection is recovered. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: TabMap needs to expose () constructorKeith Packard2014-11-15
| | | | | | Otherwise we get an exception at startup time for some reason. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add getBytes/putBytes interface to AltosPreferencesBackendKeith Packard2014-11-15
| | | | | | This lets us store arbitrary binary data in the preferences database Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Don't display MISSING flight numberKeith Packard2014-11-15
| | | | | | Just check and clear the entry if we end up seeing that value Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add imperial unit supportKeith Packard2014-09-06
| | | | | | | Provides a menu entry to switch units, changes all value displays to use the AltosLib units conversion code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Update tab contents before switchingKeith Packard2014-09-05
| | | | | | | Make sure the new tab contents are updated before switching tabs so that the user doesn't see old stuff. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Ignore TelemetryService messages after service shutdownKeith Packard2014-09-05
| | | | | | | Messages may get delivered after the service has been shut down; ignore those. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: add new TelemetryState.javaKeith Packard2014-09-04
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Use single object to pass data to UIKeith Packard2014-09-03
| | | | | | | | | Instead of having separate messages for each piece of telemetry state, package the whole mess up in one object and send it for any change. This simplifies tracking within the UI by avoiding corner cases during reconnect. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: reload previous log file at connect timeKeith Packard2014-08-31
| | | | | | Use the saved logfile to re-load the previous state at startup time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add missing preferences backend fileKeith Packard2014-08-31
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add quit. Restart. Show freq in title.Keith Packard2014-08-31
| | | | | | | | Add a quit button to menu. When restarting, reconnect to previous device. When connecting, set the freq/rate to previous values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: fixup fetching active device addressKeith Packard2014-08-29
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: start restoring from log data on startupKeith Packard2014-08-29
| | | | | | Remember which flight was last being received and reload that file Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Skip updating hidden UI elementsKeith Packard2014-08-17
| | | | | | | Instead of updating everything in the UI, only update the visible UI elements to save a bunch of computation. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add telemetry rate supportKeith Packard2014-08-17
| | | | | | Provides a menu to select the receiver telemetry bit rate Signed-off-by: Keith Packard <keithp@keithp.com>
* java: Bump java library versions for next releaseKeith Packard2014-06-16
| | | | | | Prepare for future release by bumping java versions now Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Improve voice for TeleGPSKeith Packard2014-06-13
| | | | | | This avoids making lots of useless voice announcements for TeleGPS Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Don't crash when the map is touchedKeith Packard2014-06-13
| | | | | | | The map 'canScroll' method was crashing when dereferencing a null value somewhere. Just check all of them and bail instead of crashing. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosuilib: Change versions to altoslib:4, altosuilib:2Keith Packard2014-05-25
| | | | | | API has changed for these libraries, time to bump the file versions Signed-off-by: Keith Packard <keithp@keithp.com>
* 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>
* altosdroid: Use altoslib standard voltages to control lightsKeith Packard2013-12-18
| | | | 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>
* altosdroid: convert rogue files to unix line endingsMike Beattie2013-09-05
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: more updates for new AltosStateMike Beattie2013-09-05
| | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org> Conflicts: altosdroid/src/org/altusmetrum/AltosDroid/AltosVoice.java
* altosdroid: update to support new state codeMike Beattie2013-09-05
| | | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org> Conflicts: altosdroid/src/org/altusmetrum/AltosDroid/TabAscent.java altosdroid/src/org/altusmetrum/AltosDroid/TabDescent.java altosdroid/src/org/altusmetrum/AltosDroid/TabPad.java
* 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>
* altosdroid: Just use GPS location provider to build on 4.2Keith Packard2013-07-02
| | | | | | Attempts to use the network provider cause the app to crash Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Make the service class implement locationlistenerMike Beattie2013-04-21
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: fix up 'send last' code.Mike Beattie2013-04-21
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: check for mAltosVoice being null.Mike Beattie2013-04-21
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: set tab height based on screen density.Mike Beattie2013-04-21
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Add filters for TeleBT bluetooth devices.Mike Beattie2013-04-21
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: whitespace and import tidyupMike Beattie2013-04-21
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Update distance/bearing on map tabKeith Packard2013-04-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Fix integer formatting in tabsKeith Packard2013-04-17
| | | | | | | Was trying to use AltosDroid.number for integers, which didn't work as it expected doubles. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Check for missing valuesKeith Packard2013-04-16
| | | | | | When displaying numbers, check for MISSING values and display nothing Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Update UI even if no telem has been received. Center map.Keith Packard2013-04-13
| | | | | | | | | | This allows the receiver location to be displayed even when telemetry is not. Center the map on the first valid location, either receiver or rocket. Update center if a significantly more precise location is received. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Get rid of a couple of startup messagesKeith Packard2013-04-13
| | | | | | These are just annoying Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Show our position in the map tab. Squeeze to fit phonesKeith Packard2013-04-13
| | | | | | Shrink everything to fit on phones, then add phone location to the map tab Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: The Map already draws our location; no receiver marker neededKeith Packard2013-04-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>