summaryrefslogtreecommitdiff
path: root/altoslib
Commit message (Collapse)AuthorAge
* altosui: Initial accel calibration UIaccel-cal-uiKeith Packard2017-08-12
| | | | | | Almost working, needs further tweaking. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Set time in state for KML output correctlyKeith Packard2017-08-11
| | | | | | Use new computed state_time value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: fix adjustment of landed timeKeith Packard2017-07-21
| | | | | | Push landed time out if we computed silliness. 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: Fix comments in AltosQuaternion and AltosRotationKeith Packard2017-06-27
| | | | | | Especially the nested comment which borked the compile 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: Rename AltosEepromNew to AltosEepromKeith Packard2017-06-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove old AltosEeprom.java codeKeith Packard2017-06-13
| | | | | | No longer in use Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Set time for TeleMini v1.0 eeprom analysingKeith Packard2017-06-12
| | | | | | | Need to take the computed tick time and tell the listener what time that cooresponds to. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Initialize new imu/mag values. Remove stale imu/mag objects.Keith Packard2017-06-11
| | | | | | | AltosState no longer has imu and mag objects, instead it just holds the values now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove unused 'ground_rotation' from AltosStateKeith Packard2017-06-11
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Flush igniter fire commandKeith Packard2017-06-11
| | | | | | This makes the igniter fire without a multi-second delay. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Hook up idle monitoring data againKeith Packard2017-06-11
| | | | | | | The API for idle monitoring changed, but these modules hadn't been fixed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix labels in AltosIMU to match source dataKeith Packard2017-06-11
| | | | | | | IMU bits arrive with X/Y/Z labels and are converted to the correct axes as they leave this object. 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: Handle EasyMini v2.0 ADC valuesKeith Packard2017-06-11
| | | | | | Different from EasyMini v1.0 Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Missing config values now AltosLib.MISSING, not zero or negativeKeith Packard2017-06-11
| | | | | | Also fix AltosConfigData.java Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Adapt to Mag sensor value ordering changesKeith Packard2017-06-11
| | | | | | | | | The HMC5883 sensor data is ordered x, z, y. Relabel everything to match that to preserve compatibility with existing firmware. With the data correctly ordered, fix the labling of the axes along, across and through. 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: 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,altosuilib: Remove stale source filesKeith Packard2017-05-28
| | | | | | These aren't built any longer 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: When no boost tick is found, just use first tick in fileKeith Packard2017-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Reset transient AltosCalData values before processing dataKeith Packard2017-05-28
| | | | | | | | Values in cal_data which are used to hold intermediate results need to get reset back to their initial values before processing a series of flight data again. 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: Only compute state stats for recorded statesKeith Packard2017-05-28
| | | | | | Missing states shouldn't get stats; they 'didn't happen'. 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: Remove debug printfsKeith Packard2017-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Ignore invalid accel cal valuesKeith Packard2017-05-28
| | | | | | When both are the same, something is wrong. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Check for empty gps height seriesKeith Packard2017-05-28
| | | | | | When the gps height series is present but empty, there won't be a max value. 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: Handle eeprom tick wrappingKeith Packard2017-05-28
| | | | | | | | | Need to deal with eeprom files with tick values that cross the 16-bit barrier. Use 'wide_tick' to order eeprom record. Remeber 'prev_tick' to order cal data time sequence. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Adjust boost/landed time in flight series for displayKeith Packard2017-05-28
| | | | | | Makes the presented values match those used in the stats computation. 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: 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>
* altoslib: Extract a few more values from config to cal_dataKeith Packard2017-05-28
| | | | | | Make it possible to display model/version data in the flight stats table. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Provide consistent cal_data from idle and replay readersKeith Packard2017-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Return AltosTimeValue from min/max funcsKeith Packard2017-05-27
| | | | | | Allowing the user to have both value and time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Publish boost_time and landed_time from AltosFlightStatsKeith Packard2017-05-27
| | | | | | Nice to be able to use these when displaying data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Allow for other tick sizesKeith Packard2017-05-27
| | | | | | | Use 1/100 sec by default, but provide for MicroPeak which uses a different step. 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>
* telegps: Get telegps application working againKeith Packard2017-05-27
| | | | | | Many minor API tweaks 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: Use cal data temp gps for telemetry data tooKeith Packard2017-05-26
| | | | | | This avoids bouncing the location data during flight Signed-off-by: Keith Packard <keithp@keithp.com>