summaryrefslogtreecommitdiff
path: root/altosdroid/src
Commit message (Collapse)AuthorAge
* 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: Clean up tab layoutKeith Packard2015-07-11
| | | | | | | Fuss with weights and gravitys, then add some wrapping layouts to get things looking reasonable on small and larger screens. 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: Add other igniter status, various other layout changesKeith Packard2015-07-11
| | | | | | | Show the first four igniters (A-D) in the pad tab. Make pad and flight layouts look a bit better Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Don't disconnect from bluetooth onStartCommandKeith Packard2015-07-11
| | | | | | | If we've already got a bluetooth connection running, don't slam it shut when the UI starts up again. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Remove a debug line in AltosVoiceKeith Packard2015-07-11
| | | | 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>
* altoslib: Preload maps based on distance rather than number of tilesKeith Packard2015-07-11
| | | | | | | This lets you get the specific area requested at all zoom levels, rather than having further detail only at lower resolution zooms. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Class of offline map view widget changedKeith Packard2015-06-25
| | | | | | Switch around AltosViewPager to match. 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: Make sure flight voice output always starts with 'speed'Keith Packard2015-06-23
| | | | | | | This resets the flight-mode voice output state back to start again each time the flight tab is selected Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Make sure whole flight state is spoken even when no-one is movingKeith Packard2015-06-23
| | | | | | | This eliminates the case where much of the flight state wasn't reported if the tracker or receiver weren't moving. 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: Fix line drawing to old tracker locationKeith Packard2015-06-22
| | | | | | | | Selecting an old tracker would often fail to switch the bearing line as it was using the map data instead of just using the local data for the relavant tracker. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Allow tracker selection from online map widgetKeith Packard2015-06-22
| | | | | | Need separate tracker selection code for online maps 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: 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>