summaryrefslogtreecommitdiff
path: root/altoslib
Commit message (Collapse)AuthorAge
...
* altoslib: Remove spurious semicolon in AltosReplayReader.javaKeith Packard2017-11-11
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Don't write KML record when height data is missingKeith Packard2017-11-11
| | | | | | This avoids a crash dealing with corrupted flight data Signed-off-by: Keith Packard <keithp@keithp.com>
* 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: Save separate config for local and remote. Use in idleKeith Packard2017-10-14
| | | | | | | | | | | When using the remote link, there are two separate configuration data blocks, that for the local device and for remote. Make the link report both versions, depending on whether it is in remote mode or not. Request config data in remote mode when running idle monitoring so that the presented data is for the remote device, not the local one. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Report un-adjusted ground accel in idle IMU monitorKeith Packard2017-10-14
| | | | | | | The ground accel is the basis of the accel adjustment, so it needs to be delivered in un-adjusted form. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix time series filter window computationKeith Packard2017-10-12
| | | | | | Small floating point rounding errors could lead to NaNs. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Don't crash if there's no GPS coord to write KMLKeith Packard2017-10-12
| | | | | | Just check for null before writing as a precaution. 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: Missing file for filter additions.Keith Packard2017-10-04
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Adapt KML output to make TRA record people happierKeith Packard2017-10-04
| | | | | | | | Provide two paths, one using GPS data the other baro. Replace separate path segments for each state with markers so that the path is a single unit, able to be displayed in the elevation profile widget. 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: Allow early bail-out on bad telemetry CRCKeith Packard2017-10-02
| | | | | | | Check the CRC status in the packet before creating a new telemetry object. 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: Avoid crashing when computing stats for empty flight logsKeith Packard2017-09-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Make receive frequency available in telem dataKeith Packard2017-09-12
| | | | | | This lets AltosDroid record which frequency each station was heard on. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove debug stack dump from AltosStateKeith Packard2017-09-12
| | | | | | | An empty AltosState is allocated when parsing JSON data; it's not a mistake. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Correctly parse IMU cal dataKeith Packard2017-09-12
| | | | | | | Was trying to match 'IMU call along' instead of 'IMU cal along', causing the line to not match and losing the IMU accel cal values. 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>
* altoslib: Fix freq preference loadingKeith Packard2017-08-28
| | | | | | | Allocate throw-away freq array to get the class pointer. Add null-ary AltosFrequency constructor for JSON code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Compute speed at entry to each stateKeith Packard2017-08-27
| | | | | | Useful to have drogue/main deployment speeds Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix parsing of old TM log GPS sat dataKeith Packard2017-08-27
| | | | | | | Attempting to fetch sat data from wrong byte led to array bounds exception. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Allow for missing product when checking for mma655x invertedKeith Packard2017-08-27
| | | | | | If there's no product, assume we've got some ancient log file. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove debug printf for gyro adjustKeith Packard2017-08-27
| | | | 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>