summaryrefslogtreecommitdiff
path: root/altosuilib
Commit message (Collapse)AuthorAge
* altosuilib: Mark 'Configure AltosUI' window with maps key statusKeith Packard2014-06-24
| | | | | | This lets us check a build to make sure it has a maps key Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Remove some debugging printfsKeith Packard2014-06-14
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: AltosFlightStatsTable: another editable text field that shouldn't beKeith Packard2014-06-14
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Serialize access to async tile notify function in preloadKeith Packard2014-06-14
| | | | | | | This ensures that we see each tile getting downloaded and don't mis-count, which would result in wedging the process Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Make graph enable buttons be CheckBoxes instead of RadioButtonsKeith Packard2014-06-14
| | | | | | aj noticed. Signed-off-by: Keith Packard <keithp@keithp.com>
* alotsuilib: Remove old "mega" and "mini" file extensions from data chooserKeith Packard2014-06-14
| | | | | | We never shipped AltosUI which stored mega/mini files in different extensions Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Add AltosUIFlightTab classKeith Packard2014-06-14
| | | | | | This covers most of the common functions for all flight status display tabs. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Add more options to AltosUIIndicator to suit AltosUIKeith Packard2014-06-14
| | | | | | This makes AltosUIIndicator capable of displaying most stuff in AltosUI Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Make sure only one thread is closing serial deviceKeith Packard2014-06-14
| | | | | | Multiple closers can cause a crash by freeing the libaltos device twice Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: provide getName() for AltosInfoTableKeith Packard2014-06-14
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: In graph, show zero sats in view as 0 instead of MISSINGKeith Packard2014-06-14
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Require all flight display classes to provide a nameKeith Packard2014-06-14
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Allow TeleGPS preferences to have a custom title and labelKeith Packard2014-06-13
| | | | | | Don't just inherit the AltosUI ones Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Make map-cache per-window instead of globalKeith Packard2014-06-13
| | | | | | This consumes more memory, but avoids cache conflicts between windows Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Build some common classes for displaying values in flight windowKeith Packard2014-06-13
| | | | | | | | Right now, all of the flight displays have piles of custom code for displaying values. These new widgets should be able to replace most of that. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/telegps: Reduce CPU time needed for flight displaysKeith Packard2014-06-12
| | | | | | | | | | Don't update displays which aren't shown; track hierarchy changes to trigger display from most recent state data. Don't update values which haven't changed; remember previous values and compare with new before updating widget contents. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Repaint map when starting line drawKeith Packard2014-06-11
| | | | | | | Starting line draw will remove any existing line, so repaint to get rid of it Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Handle font and units changes in maps and stats tableKeith Packard2014-06-11
| | | | | | Add AltosFontListener and AltosUnitsListener bits as needed Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Remove old widget-based map UIKeith Packard2014-06-11
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Rewrite map GUI bitsKeith Packard2014-06-11
| | | | | | Use a single large Canvas and draw images on top by hand. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Move AltosFlightStatsTable to altosuilibKeith Packard2014-06-10
| | | | | | So that TeleGPS can share it Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Skip voice announcements for invalid valuesKeith Packard2014-06-10
| | | | | | When height and speed values aren't available, don't say anything Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Split battery graph enable out from other adc enablesKeith Packard2014-06-10
| | | | | | | | This lets TeleGPS just show the battery voltage values without also adding enable lines for the other flight computer ADC values like ignitor voltages. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Fix crash when initializing site map cacheKeith Packard2014-06-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Add GPS altitude as a possible graph valueKeith Packard2014-06-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Show GPS instead of (missing) flight data for TeleGPS graphsKeith Packard2014-06-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Let the user hand-edit the preload map radiusKeith Packard2014-06-05
| | | | | | In case they want more than 5 Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Add graph displayKeith Packard2014-05-29
| | | | | | Moved the altosui graph files to altosuilib and fixed things up. Signed-off-by: Keith Packard <keithp@keithp.com>
* java: Refactor AltosFlightDisplay units and font update handlingKeith Packard2014-05-29
| | | | | | | | | Make AltosFlightDisplay explicitly implement AltosFontListener and AltosUnitsListener interfaces to make everyone use the same API. Then, actually go implement units listeners so that changing units updates all of the active displays immediately Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Add info tableKeith Packard2014-05-29
| | | | | | | Move a couple of files from altosui to altosuilib, hook up the info table after changing it to implement the AltosFlightDisplay interface Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Add flash device functionalityKeith Packard2014-05-28
| | | | | | Move bits from altosui to altosuilib and use those. Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Add 'Info' tabKeith Packard2014-05-28
| | | | | | | This contains a summary of the tracking info, including position, speed and course. Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Hook up data download dialogKeith Packard2014-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Add scan UIKeith Packard2014-05-28
| | | | | | | Move scan UI bits into altosuilib, allow telegps to not show telemetry format options. Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Add preferences dialogKeith Packard2014-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/altosuilib: Shuffle lots more code from altosui intoKeith Packard2014-05-28
| | | | | | | | altosuilib All of the bluetooth management stuff, and AltosSerial. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Don't try to draw to destroyed map windowsKeith Packard2014-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Publish AltosSiteMap.centre. Add prefetchMaps with old APIKeith Packard2014-05-28
| | | | | | This gets altosui working again. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Update map preloading UI to include zoom and maptypesKeith Packard2014-05-28
| | | | | | This lets you specify precisely which maps to load. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Remove debug printf in AltosSiteMapCacheKeith Packard2014-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Add google maps API key, configured with -with-google-keyKeith Packard2014-05-28
| | | | | | | | | | | This places the actual key outside of the repository, allowing the user to configure the name of the file containing the key. By default, this pulls the key from $HOME/altusmetrumllc/google-maps-api-key. With the key present, there are no longer any rate limits to loading map data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Decompress map images asynchronously and in parallelKeith Packard2014-05-27
| | | | | | | This speeds up loading map images from disk quite a bit, and keeps the UI responsive while that happens as well. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Add distance measuring line to site map.Keith Packard2014-05-27
| | | | | | | Use any modifier or button other than the left one to draw a line on the map. The length of the line is shown at the start of the line. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Add multiple zoom levels and content types to mapKeith Packard2014-05-27
| | | | | | | Also changes the file format for hybrid, satellite and terrain maps to jpg to save disk space. 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>
* altosui/altosuilib/altoslib: Move more stuff out of autosui. Reduce site map ↵Keith Packard2014-05-25
| | | | | | | | | | | memory Prepare to share with TeleGPS application. This also has the changes to the site map tile which cache only a few images and regenerate the flight path on the fly, saving piles of memory Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/altosuilib: Cleanup -Xlint:unchecked warningsKeith Packard2014-05-25
| | | | | | Add parametric types to avoid unchecked warnings. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Make lines in graphs 2 units wideKeith Packard2014-04-12
| | | | | | This makes the graphs a lot easier to read. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui/altosuilib/libaltos: Remove trailing whitespaceKeith Packard2014-04-11
| | | | | | Just cleaning up the source code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Remove some spurious debug printfsKeith Packard2014-01-21
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>