summaryrefslogtreecommitdiff
path: root/altosuilib
Commit message (Collapse)AuthorAge
* altoslib/altosuilib: Validate rom image is for target deviceKeith Packard2018-01-12
| | | | | | This should avoid mis-programming devices with incorrect firmware. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Improve EEprom downloadKeith Packard2017-11-11
| | | | | | | | | * Catch and report CRC errors * Deal with corrupted flight records * Add ability to immediately graph new data * Check before overwriting existing files Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: New line styles and colors for graphs. Selectable line widthKeith Packard2017-11-11
| | | | | | | | Improve the readability of graphs by offering a better selection of colors and adding line styles. Let the user configure the line width as desired. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Add 'show marker' button to graphsKeith Packard2017-10-04
| | | | | | | Provides a marker at each actual data point which can be useful for sparse data sets like telemetry with poor reception. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add user-selectable filter width for data smoothingKeith Packard2017-10-02
| | | | | | | | | Also switch smoothing window to Kaiser and change default accel filter width to 1 second instead of 4 seconds. Now users can play with the filter and see what it does. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Show raw tick values in graph and info tableKeith Packard2017-10-02
| | | | | | | Not terribly useful, but did help validate firmware handling of tick wrapping, so we'll keep it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Don't drain voice when terminating displayKeith Packard2017-10-02
| | | | | | | If the voice thread is wedged (as with PulseAudio and un-patched freetts 1.2.2), we'll get stuck here and the UI will freeze up. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Make steps in accel cal default buttonKeith Packard2017-09-12
| | | | | | This way you can just hit return through the process. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Accel calibration UIKeith Packard2017-09-01
| | | | | | Provides a GUI for re-calibrating accelerometers Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Add "Huge" font sizeKeith Packard2017-08-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Deal with multiple motors in flight statsKeith Packard2017-06-27
| | | | | | Combine boost/fast/coast sections when computing ascent stats. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Make cal_data private in AltosDataListenerKeith Packard2017-06-20
| | | | | | This way we can create it as needed. 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>
* altosuilib: Rename AltosGraphNew to AltosGraphKeith Packard2017-06-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Rename AltosUIGraphNew to AltosUIGraphKeith Packard2017-06-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Don't display pad, last location in flight stats without gpsKeith Packard2017-06-12
| | | | | | Check stats.have_gps before displaying pad and last known location values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui, telegps, altosdroid: say ground distance, not total rangeKeith Packard2017-06-11
| | | | | | Ground distance is more useful in predicting recovery than total range. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib, altosuilib, altosui, telegps: Missing config values now MISSINGKeith Packard2017-06-11
| | | | | | | | Config values that didn't apply to the current product used to get set to -1, but now they're set to AltosLib.MISSING to be consistent with the rest of the code. Deal with this in the UI bits. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Compute 'vertical acceleration' for eeprom filesKeith Packard2017-06-08
| | | | | | | | This uses the computed orientation to find the portion of the measured acceleration which is vertical and then shows that in the post-flight analysis graph. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib,altosuilib: Remove stale source filesKeith Packard2017-05-28
| | | | | | These aren't built any longer Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Set graph title to include product/serial/flight infoKeith Packard2017-05-28
| | | | | | Better than "Flight" Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Display product/firmware version in stats tableKeith Packard2017-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Create data file open helper in AltosLibKeith Packard2017-05-28
| | | | | | | Use InputStream everywhere, instead of Reader. Create private string input stream as java one is deprecated. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Remove 'cal_data' param from AltosGraphNew constructorKeith Packard2017-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Make AltosFlightStatsTable neaterKeith Packard2017-05-27
| | | | | | Elide missing data, change titles when data are simpler Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Get telegps application working againKeith Packard2017-05-27
| | | | | | Many minor API tweaks Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Make sure AltosFlightSeries is filled in before useKeith Packard2017-05-26
| | | | | | | After all of the raw data is captured, the derived data needs to be computed by calling the 'finish' function. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib,altosuilib,altosui: Get stats and replay working again.Keith Packard2017-05-26
| | | | | | | | Stats are really easy with all of the data in memory. Replay takes a special thread to run the data and dump it into a single state. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosuilib/altosui: More work towards using AltosFlightSeries for ↵Keith Packard2017-05-25
| | | | | | | | analysis Graphing and CSV seem complete now; stats still missing lots of stuff. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Adapt to AltosFlightSeries data processing planKeith Packard2017-05-25
| | | | | | | Replace use of list of AltosState with AltosFlightSeries to improve data analysis. Signed-off-by: Keith Packard <keithp@keithp.com>
* add thrust as a graphable time series typeBdale Garbee2017-05-19
|
* altosuilib: Start creating new graph interface that takes time series dataKeith Packard2017-05-19
| | | | | | | Replace the AltosState interface so the graph can get better data, and can be used for more stuff. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Add time series subclass with data for generating a plotKeith Packard2017-05-19
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* have AltosGraph use new AltosPressure to get imperial_units workingBdale Garbee2017-05-11
|
* altoslib: Remove older eeprom handling codeKeith Packard2017-05-09
| | | | | | The new code appears to work in minor testing; time to try it all the time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Save eeprom data in new .eeprom formatKeith Packard2017-05-09
| | | | | | A chunk of json for the config values followed by hex numbers for the data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Show indicator when they switch from invalid back to validKeith Packard2016-07-12
| | | | | | | | The 'hide' value wasn't getting reset to 'false' each time the state of the indicators was checked, so indicators would get hidden and then never shown again. 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>
* altosuilib: Track open frames, exit when none remainKeith Packard2016-06-15
| | | | | | | This will let us not have the altosui window open by causing the application to shut down when the last frame closes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Only display map debugging when serial_debug is enabledKeith Packard2016-06-05
| | | | | | This keeps the application quiet for most users. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Fill preload map on site or lat/lon changeKeith Packard2016-05-27
| | | | | | | | This loads the map view with the selected area when the site entry is changed or the user hits return in the lat/lon fields. This lets you see the target launch site without having to load the whole preload set. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Rename AltosUIMap*New.java to AltosUIMap*.javaKeith Packard2016-05-24
| | | | | | This code isn't really new anymore... Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Have map preload respond to units and font size changesKeith Packard2016-05-24
| | | | | | | Just add suitable listeners so that the display updates when preferences change. 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>
* altoslib: Get rid of AltosMap from AltosMapLoaderKeith Packard2016-05-11
| | | | | | | Cleans up the loader API and eliminates a AltosMapTile for every chunk of map data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Don't flicker missing voltages when changing unitsKeith Packard2016-05-11
| | | | | | | | For some reason, a value of MISSING -1 was getting used, which caused displays to light up briefly with a weird value when switching between metric and imperial units. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Allow map preloading to be abortedKeith Packard2016-05-11
| | | | | | | Close the map preload dialog and it would be nice to stop loading map bits. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Rate limit map loading pacifier updatesKeith Packard2016-05-11
| | | | | | | Just updating the pacifier was consuming a huge amount of CPU. Update no more than once every 100ms. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Switch distance from m/ft to km/miles for large valuesKeith Packard2016-05-11
| | | | | | | This adds lots of infrastructure to deal with making the unit used depend on the value itself, and then uses it only for distances. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix map preloading callbacks, run in separate threadKeith Packard2016-05-05
| | | | | | | | | | | | | | | | | The map storage and tile callbacks were muddled together. Create clearly separate states for map data and have status updates be delivered when registering for new status events so that registration is sufficient to track the state without an explicit call to get the current state. Run the map tile creation in a separate thread so that even checking status of files on disk runs out of the UI thread. These fixes serve to make the pacifier update more smoothly, and also not over/under count tile loading so that the loading actually completes when all of the tiles are loaded. Signed-off-by: Keith Packard <keithp@keithp.com>