summaryrefslogtreecommitdiff
path: root/altoslib
Commit message (Collapse)AuthorAge
...
* 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>
* name change from MegaMetrum to TeleMegaBdale Garbee2013-04-22
|
* Merge branch 'master' into droid-gpsKeith Packard2013-04-15
|\
| * altoslib: Check for null state.gps before accessing it in eeprom recordsKeith Packard2013-04-15
| | | | | | | | | | | | | | | | | | Used to be we'd set state.gps to garbage before seeing the first GPS record; now we leave it null, which will cause crashes for code that doesn't expect it. The code for reading and replaying eeprom data was not checking and was nicely crashing as a result. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altoslib: Remove spurious debug messageKeith Packard2013-04-12
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | altoslib: Remove spurious debug messageKeith Packard2013-04-12
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | altoslib: Add range and elevation to AltosGreatCircleKeith Packard2013-04-11
|/ | | | | | Move the computations from AltosState here so they can be re-used elsewhere. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui: Adapt monitor idle to new AltosListenerStateKeith Packard2013-04-09
| | | | | | Move the receiver battery monitoring to the new spot Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui: Carry receiver status around in AltosListenerStateKeith Packard2013-04-09
| | | | | | | | | | This moves the crc_errors into the new structure and adds a receiver battery voltage value there as well. Now the receiver status can be monitored separately from the flight status. That also means that code receiving state updates should be prepared to accept missing listener or flight state values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Display current GPS in 'pad' tab for 'startup' statenKeith Packard2013-04-02
| | | | | | | This is the state for telegps, so just display the current GPS info as we don't know where it started at. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Don't display missing sensor dataKeith Packard2013-04-02
| | | | | | | For devices without sensors, don't display temperature, barometric and accelerometer-derived values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Make any incoming telem packet update the RSSI valueKeith Packard2013-04-02
| | | | | | | | Every packet has RSSI info, so use the latest one available. This makes telegps RSSI available as it never sends sensor packets (having no sensors). Signed-off-by: Keith Packard <keithp@keithp.com>
* Set telegps USB id to 0025Keith Packard2013-04-02
| | | | | | It was accidentally using the same ID as megadongle... Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Don't deref null pyros when saving altimeter configKeith Packard2013-03-27
| | | | | | | The check for no pyro config is to compare npyros against zero rather than check the length of the pyros array as the latter may be null. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge remote-tracking branch 'mjb/master'Keith Packard2013-03-06
|\
| * all: clean up .gitignore files and Makefile clean targetsMike Beattie2013-02-15
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* | altoslib: Invalidate GPS new data bit when updating stateKeith Packard2013-03-04
|/ | | | | | Somehow this line got lost when the GPS ground altitude fix was made. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Stick file basename in graph window titleKeith Packard2013-02-11
| | | | | | The title was empty before, this seems more useful than that. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix available flight log storage computationKeith Packard2013-02-10
| | | | | | | | number of flights was off by one as it was initialized to -1 storage erase unit wasn't getting fetched correctly flight_log_max is in kB, not B; need to multiply by 1024 Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Interrupt MonitorIdle when changing frequency/callsignKeith Packard2013-02-10
| | | | | | | | When switching radio parameters, the local device needs to have the parameters switched, so interrupt the current operation and start over, the frequency and callsign will be set the next time through. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix a couple of unit functions to make them publicKeith Packard2013-02-10
| | | | | | Nice to be able to use these outside of altoslib Signed-off-by: Keith Packard <keithp@keithp.com>