summaryrefslogtreecommitdiff
path: root/altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java
Commit message (Collapse)AuthorAge
* altosdroid: Display serial, call, freq in tracker listKeith Packard2017-09-12
| | | | | | This makes the list a lot easier to find entries in when it gets long. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: cal_data is no longer public from AltosStateKeith Packard2017-06-27
| | | | | | Use cal_data() method instead. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib,altosuilib: Bump library version numbersKeith Packard2017-06-13
| | | | | | The API and ABI have changed a bit since 1.7 Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Deal with AltosState changesKeith Packard2017-05-27
| | | | | | | | cal data split out from altos state. altos state needed to have no-arguments constructor for JSON code. Also messed with voice to make it stay quiet during app startup. Signed-off-by: Keith Packard <keithp@keithp.com>
* Switch from GPLv2 to GPLv2+Keith Packard2016-07-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Store saved state in version-independent formatKeith Packard2016-05-12
| | | | | | | Use AltosHashSet for AltosState so that AltosDroid doesn't lose tracker information when the application is upgraded. Signed-off-by: Keith Packard <keithp@keithp.com>
* Bump java library versionsKeith Packard2016-05-12
| | | | | | Prepare for 1.6.4 release Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add configurable frequency setKeith Packard2016-04-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Split setup functions to separate dialogKeith Packard2016-04-26
| | | | | | | Remove them from the options menu, handle all preferences through listeners. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add idle mode monitoring, reboot. Start ignitersKeith Packard2016-04-25
| | | | | | | This adds three idle mode operations -- monitor idle, reboot flight computer and test igniters. The igniter test isn't quite wired up. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Run even without BluetoothKeith Packard2016-04-22
| | | | | | | This lets us view old state information on USB-only devices, or when the bluetooth device can't be enabled. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Track device location in app, not telemetry serviceKeith Packard2016-04-22
| | | | | | | This means we get location even if there isn't a telemetry device connected, making it possible to walk to old device locations Signed-off-by: Keith Packard <keithp@keithp.com>
* Update java library version numbersKeith Packard2016-04-21
| | | | | | Prepare for 1.6.3 release. Signed-off-by: Keith Packard <keithp@keithp.com>
* Update java library versionsKeith Packard2016-01-10
| | | | | | altoslib is API incompatible with 1.6.1 release due to altos.state updates. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Clean up remaining direct AltosState.state usersKeith Packard2015-10-13
| | | | | | | This value has been hidden to avoid having it written accidentally; there were a few more bits of code using it though. Signed-off-by: Keith Packard <keithp@keithp.com>
* Bump Java library versionsKeith Packard2015-07-15
| | | | | | Avoid problems if you have an old version of the library installed Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add 'Auto' to map tracker listKeith Packard2015-07-11
| | | | | | Add an 'auto' menu entry when selecting trackers from the map. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Note time at startup to avoid flipping trackersKeith Packard2015-07-11
| | | | | | | Need to set the initial 'switch' time in onStart to avoid flipping between trackers before we've done any other 'switching' action. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Pop up menu of nearby trackers on map clickKeith Packard2015-07-11
| | | | | | | | This lets the user select one of potentially many overlapping trackers, and also makes it clear when the current tracker is being changed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Keep speaking even when screen is offKeith Packard2015-07-11
| | | | | | | | Move the voice and telemetry disabling calls from onStop to onDestroy so that a stopped application only leaves off updating the screen, and not the voice bits as well. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Display direction in map viewKeith Packard2015-06-24
| | | | | | Use direction in map view when available, otherwise use bearing Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Change voice output aroundKeith Packard2015-06-23
| | | | | | | | | | | | | | | | | | | | | | | This makes the voice output depend on the current displayed tab; where the 'recovery' and 'map' tabs get the same value. Pad Reports igniter and GPS status changes Flight Report flight state changes and max height after apogee Report current speed, height and bearing/elevation/range once every 10 seconds while the rocket is in motion. Recovery Report distance and bearing when the location of either the tracker or the receiver changes by more than 10m, but not more than once every 10 seconds. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Define strings for the tab namesKeith Packard2015-06-23
| | | | | | | Use these everywhere instead of replicating the same name; might reduce errors. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Show direction to target in recover tabKeith Packard2015-06-23
| | | | | | | | This takes the bearing to target and current direction of motion (from the Android API) and computes a turn amount and displays that so you don't have to know which way is north when walking towards the rocket. Signed-off-by: Keith Packard <keithp@keithp.com>
* 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: 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>
* 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: 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: 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: 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: 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: 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>