summaryrefslogtreecommitdiff
path: root/altoslib
Commit message (Collapse)AuthorAge
* Change differentiation filter constants and limitsKeith Packard2013-10-07
| | | | | | | Larger limits avoids clipping legit data. Using the same filter time for both ascent and descent makes the results look a bit cleaner. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add TeleMini v2.0 telemetry supportKeith Packard2013-09-19
| | | | | | Includes AltosLib and ao-telem Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Prefer averaged ground pres for ground alt computationKeith Packard2013-09-19
| | | | | | | | If ground pressure is recorded (as from an eeprom file), then prefer that value to the average of the pre-boost ground pressures when computing the ground altitude. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Include device name in Table viewKeith Packard2013-09-06
| | | | | | It's part of the telemetry, so we might as well display it Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: TeleMetrum v2 telemetry includes computes Pa/°C, not raw valuesKeith Packard2013-09-06
| | | | | | | Telemetry sends converted pressure/temp values as it doesn't include the MS5607 calibration data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add receiver serial to telem file namesKeith Packard2013-09-06
| | | | | | Makes it easy to record telemetry from multiple sites and compare them later. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add TeleMini eeprom file to Makefile.amKeith Packard2013-09-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Lock access to AltosLink config_dataKeith Packard2013-09-06
| | | | | | | Prevents multiple callers from trying to get config data at the same time and messing up the serial line Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Set 'valid' for valid TeleMetrum eeprom downloadKeith Packard2013-09-06
| | | | | | | Had separate 'tick_valid' value, which wasn't useful as the supertype didn't look there. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui: Add TeleMini-v1.0 eeprom supportKeith Packard2013-09-06
| | | | | | Got lost in the AltosState transition Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove debug printf from AltosTelemetryMetrumSensorKeith Packard2013-09-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Rewrite AltosTelemetryIterableKeith Packard2013-09-05
| | | | | | Sort while reading instead of sorting separately. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Record time_change in AltosState correctlyKeith Packard2013-09-05
| | | | | | time_change is used to make real-time playback work. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Update received time when replaying flightsKeith Packard2013-09-05
| | | | | | | Received time is otherwise recorded as the time when the packets were read from the file, which doesn't work in real-time playback Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Only open log file when both flight and serial are knownKeith Packard2013-09-05
| | | | | | | Some telemetry formats include serial and flight in different packets, so wait for both before creating the file Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use AltosTelemetry.parse to pull telem lines apartKeith Packard2013-09-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove more AltosRecord based filesKeith Packard2013-09-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: remove AltosRecord based eeprom codeKeith Packard2013-09-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove AltosRecord-based telemetry codeKeith Packard2013-09-05
| | | | | | All of this is now AltosState based Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: convert rogue files to unix line endingsMike Beattie2013-09-05
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altoslib: Finish AltosState changes. Update version number.Keith Packard2013-09-05
| | | | | | | Removes all of the AltosRecord bits, changes the monitor idle bits to have per-object state updaters. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Set measured acceleration for measured accelerationKeith Packard2013-09-03
| | | | | | Was setting computed acceleration even for measured data Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Clear sat data when tick changesKeith Packard2013-09-03
| | | | | | | Sat data comes in multiple records, but the tick is always the same, so use that to tell when the set of sats is new Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Start integrated value at 0 by defaultKeith Packard2013-09-03
| | | | | | Check for MISSING and start at zero in that case Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use first few baro samples for ground pressure on TMKeith Packard2013-09-03
| | | | | | | TM didn't record the ground baro reading in the log file, so pull out the first few measured baro samples and use those instead. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Make Ascent/descent use different filter values. Always filter.Keith Packard2013-09-03
| | | | | | | | | In derivative code, use a shorter filter during ascent as the baro sensor is cleaner then. Then, make sure to always filter the values as the very first few baro samples can be noisy, which generates a bad starting speed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove duplicate cmd/tick from TM eeprom file codeKeith Packard2013-09-03
| | | | | | Also replace tick setting with super call (which does that) Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Clean up metrum eeprom file readingKeith Packard2013-09-03
| | | | | | Spurious tick setting, fix some local variable names Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Correct mega/metrum eeprom years by adding 2000Keith Packard2013-09-03
| | | | | | The files contain a single byte for year, which is always years since 2000. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Correct tick wrapping in eeprom file readingKeith Packard2013-09-03
| | | | | | | Just need to signal that at least one record has been read to know when to start checking for wrap Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Ensure eeprom file body always existsKeith Packard2013-09-03
| | | | | | Create an empty list of body elements if none were read from the file Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: More AltosState hackingKeith Packard2013-09-02
| | | | | | EasyMini graphs are looking good now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui: Further AltosState transition workKeith Packard2013-08-31
| | | | | | | Parses most eeprom and telem records now; altosui updated to show from AltosState info. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui: Fixes for state changesKeith Packard2013-08-31
| | | | | | | Format for gps alt (now double). Use new code for csv file loading. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui: Get legacy telem working with new AltosState structureKeith Packard2013-08-31
| | | | | | Make AltosTelemetry work without AltosRecord Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib, altosui: Restructured state management now does TM eeprom filesKeith Packard2013-08-29
| | | | | | | Removed uses of AltosRecord from AltosState, now just need to rewrite the other AltosState changing code to match Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Start restructuring AltosState harderKeith Packard2013-08-29
| | | | | | | Make per-packet code update state itself rather than having all state updates done centrally. Will make adding new packet types easier. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add EasyMini USB idsKeith Packard2013-06-24
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add raw pressure to the AltosUI graphKeith Packard2013-06-17
| | | | | | A nice addition, and useful when diagnosing baro sensor issues Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Use preferred units for main deployment height configurationKeith Packard2013-06-11
| | | | | | | Show and accept values in the preferred units; create a separate list of preferred values for each set of units Signed-off-by: Keith Packard <keithp@keithp.com>
* altos,altosui: Add pyro state logging for TeleMegaKeith Packard2013-05-26
| | | | | | | Only in the log file (no obvious space in the telem packets), but at least we should be able to check for pyro failures. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add Mini logging format. Use in EasyMinilpcKeith Packard2013-05-19
| | | | | | | This is a 16-byte record that includes all of the sensor data in each sensor record, along with records for flight state changes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemega: The last two igniters are apogee and mainKeith Packard2013-05-19
| | | | | | Not the first two. TeleMega v0.3 has these marked on the silk Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use sequence numbers to track GPS updates to AltosRecordKeith Packard2013-05-14
| | | | | | | | | | | State objects now record what GPS sequence ID they have to know when the GPS data has been updated. Record objects bump the GPS sequence each time new GPS data is recorded. This way, record objects aren't modified as they're iterated over to generate the list of state objects which makes it possible to iterate multiple times and get the same resulting set of states. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Correct hexfile address rangesKeith Packard2013-05-13
| | | | | | | | Stop trying to use sentinal values for addresses and just keep a boolean tracking whether they've been initialized. Avoids precision errors in the variables. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master-fixes' into stm-flash-fixesKeith Packard2013-05-09
|\
| * altoslib: Add non-persistent 'last logdir' preferenceKeith Packard2013-05-09
| | | | | | | | | | | | | | This is used to record the last directory for reading or writing log files so that the UI can pop back to the same place next time. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altosui/altoslib: Move more flashing code from altosui to altoslibKeith Packard2013-05-07
| | | | | | | | | | | | | | Required a bit of refactoring to eliminate swing types from the flashing code, but nothing major. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altosui & altoslib: Move a pile of debug/programming bits to altoslibKeith Packard2013-05-07
|/ | | | | | Prepare to create external Java utilities to flash devices Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Update GPS state even if new state is unlockedKeith Packard2013-05-07
| | | | | | | Otherwise, we can't see fine GPS details while GPS is unlocked, and that's annoying Signed-off-by: Keith Packard <keithp@keithp.com>