summaryrefslogtreecommitdiff
path: root/altosdroid/src
Commit message (Collapse)AuthorAge
...
* altosdroid: Switch to four tabs (pad/flight/recover/map)Keith Packard2015-06-22
| | | | | | Ascent and descent were almost the same; no reason to have both. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Select tracker by clicking on mapKeith Packard2015-06-22
| | | | | | | This lets you pick a tracker from the map, rather than having to use the menu. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Get rid of on-line only maps tabKeith Packard2015-06-22
| | | | | | | The offline tab did both, so delete the online one and replace it with the offline one. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Display online/offline maps in same tabKeith Packard2015-06-22
| | | | | | | Make the map portion switchable between online and offline maps, leaving the rest of the tab alone. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add map source preferenceKeith Packard2015-06-22
| | | | | | Not hooked up yet. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Show receiver battery voltage in the 'pad' viewKeith Packard2015-06-22
| | | | | | Helpful to determine when the receiver battery is getting low Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Use AltosMap set_zoom_centreKeith Packard2015-06-22
| | | | | | This keeps the center of the zoom gesture pinned to the screen. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Multiple tracker support for google mapsKeith Packard2015-06-22
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Stack map markers with newest rocket on topKeith Packard2015-06-22
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Support for sorting rockets by ageKeith Packard2015-06-22
| | | | | | Now we can just sort rockets so that the top-most shown is the newest Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Remove debugKeith Packard2015-06-22
| | | | | | Just noise at this point. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Switch trackers automatically when changing freq or baudKeith Packard2015-06-22
| | | | | | | This works by switching trackers when we receive telemetry newer than the last time we changed the frequency configuration. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add multi-tracker supportKeith Packard2015-06-06
| | | | | | | This lets you view multiple trackers in the offline maps tab (online maps not done yet), saves state of each tracker to preferences. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Highlight age in red when older than 10 secondsKeith Packard2015-06-02
| | | | | | This lets you quickly identify stale data Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Switch from custom title to standard Holo themeKeith Packard2015-05-31
| | | | | | | This gives us the menu button, which is awfully useful on devices without a hardware version... Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Require 'debug' hook in AltosMapInterfaceKeith Packard2015-05-29
| | | | | | This lets the map users redirect debug messages as appropriate Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: use 'show' to set new tab contents in onResumeKeith Packard2015-05-29
| | | | | | | Hook onResume so that newly created/recreated tabs get current contents. The set_visible hook isn't sufficient for that. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Missing call to super.onDetach from TabMapOfflineKeith Packard2015-05-29
| | | | | | Causes an exception when you shut down the application. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Split out AltosMapView into separate fileKeith Packard2015-05-28
| | | | | | | | | This lets us use the regular layout configuration bits in the .xml file instead of needing to patch the map object into the display. That was causing problems when re-entering the map tab as the map view would somehow end up with a zero width. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add 'Current Location' as an option when preloading mapsKeith Packard2015-05-28
| | | | | | | This lets you load maps around your current location, in case your favorite launch site isn't in the list. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Save selected map type in AltosDroid objectKeith Packard2015-05-28
| | | | | | | The map tabs may not have been created when the map type was selected, so save the desired type in the main application object. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Disable debug output on release buildsKeith Packard2015-05-28
| | | | | | | We generate an awful lot of debug spew to the log; presumably that's not helping performance, so lose that for release builds. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add map types and map preloading UIsKeith Packard2015-05-28
| | | | | | | This adds an ugly dialog to select which maps to preload, and also adds the ability to display other map types. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Place icons on screen instead of drawing pathKeith Packard2015-05-26
| | | | | | This makes drawing a bunch faster, and locating stuff on the screen easier. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Centralize debug printf codeKeith Packard2015-05-26
| | | | | | Create AltosDebug to hold the debug code, use it everywhere. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Move pause before reopening bluetooth into connec threadKeith Packard2015-05-26
| | | | | | This avoids stalling the UI while waiting for TBT to boot. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add offline map tabKeith Packard2015-05-26
| | | | | | | It's not very fancy yet, but it does zoom and pan, and show the path of the rocket with a line. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosuilib: Update library version to 7Keith Packard2015-05-25
| | | | | | So many ABI/API changes Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Expose locale and non-locale floating point parsing functionsKeith Packard2015-05-19
| | | | | | | | | UI bits use locale-specific floating point formats, so parsing those needs to use the locale. Network-based data, like .kml bits need to use non-locale-specific parsing code, so now we've got both APIs available, and each used as appropriate. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Fix tab label height problemsKeith Packard2015-04-27
| | | | | | | | | With a newer android API versions, we can set the indicator to a View instead of just a string. This lets us wrap the desired string in a TextView and show just that for the indicator, making it exactly the right size. Signed-off-by: Keith Packard <keithp@keithp.com>
* 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>