summaryrefslogtreecommitdiff
path: root/altoslib/AltosFlightSeries.java
Commit message (Collapse)AuthorAge
* altoslib: Move temp GPS API from cal_data to data_listenerKeith Packard2017-10-22
| | | | | | | | This makes the API more consistent, and means that the listener is responsible for mangaing the temp gps state. In particular, the AltosDataListener set_gps API now calls the cal_data function. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Allow gps time later than requested if it's firstKeith Packard2017-10-12
| | | | | | | | | | When generating a KML file, we want to position markers near the start of the flight section. This is done by looking for a GPS coordinate 'before' the starting point of the flight, which doesn't work well when the first GPS coordinate is later than that. Pick the first point after the chosen time if there isn't an earlier one. 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>
* altoslib,altosuilib,altosui: log_format/device_type TeleGPS selects statelessKeith Packard2017-10-02
| | | | | | | | | When the device being analyzed has no flight state, we want to use the 'stateless' state so that the UI can display reasonable information. This bit was lost in the recent AltosState shuffle and this patch brings it back. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add tilt and pyro data to CSV exportKeith Packard2017-09-26
| | | | | | | It's now version 6. Also removed duplicate time values and made radio values conditional on having radio data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Clean up quaternion and rotation interfacesKeith Packard2017-06-22
| | | | | | | | Export euler to quaternion (instead of half_euler). Provide angles to rotate rather than rates and time. Add comments to quaternion and rotation code. 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>
* altoslib: Keep time series in AltosFlightSeries array sortedKeith Packard2017-06-11
| | | | | | This makes using the graph way easier. 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: Compute orientation from eeprom data filesKeith Packard2017-06-08
| | | | | | This was lost in the AltosFlightSeries transformation. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Check for valid pad alt before computing GPS height seriesKeith Packard2017-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add status back to AltosFlightSeries for CSV exportKeith Packard2017-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Don't record radio status values in flight seriesKeith Packard2017-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Don't record 'pad' state in FlightSeriesKeith Packard2017-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Clean up gps series loggingKeith Packard2017-05-28
| | | | | | | Create each gps series only when data are avaiable. Compute gps height series shen series is finished. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: AltosFlightSeries ignore missing accel/pressureKeith Packard2017-05-28
| | | | | | missing accel often comes from invalid cal data; easier to check here. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use first pressure value if no ground pressure availableKeith Packard2017-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add constants for speed/accel filteringKeith Packard2017-05-28
| | | | | | With an eye towards letting the user pick. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Change how speed/accel are computed from pressureKeith Packard2017-05-27
| | | | | | | Filter *then* differentiate. This works way better that doing things in the other order. 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>
* altoslib: Get KML export working againKeith Packard2017-05-26
| | | | | | Even annotate the states with avg speed/accel for fun. 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>
* altoslib: Do data analysis on raw values rather than AltosStateKeith Packard2017-05-25
| | | | | | | | Use AltosFlightSeries instead of a sequence of AltosState records when processing saved data. This provides a better way of doing filtering and plotting. Signed-off-by: Keith Packard <keithp@keithp.com>
* add thrust as a graphable time series typeBdale Garbee2017-05-19
|
* altoslib: Create new abstraction underneath AltosState for recording valuesKeith Packard2017-05-19
Provides a way for the graph API to see raw data values, instead of those cooked by AltosState. Signed-off-by: Keith Packard <keithp@keithp.com>