summaryrefslogtreecommitdiff
path: root/altoslib
Commit message (Collapse)AuthorAge
* altoslib: Parse eeprom 'altitude-32' fieldsKeith Packard2014-07-14
| | | | | | | This lets us tell if the altimeter supports 32-bit GPS altitudes in the eeprom log. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Extend telemetry heights from 16 to 32 bitsKeith Packard2014-07-10
| | | | | | | Uses the GPS data and/or previous kalman data to compute the upper 16 bits of the truncated telemetry altitude value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Handle wide GPS altitude values in eeprom and telemetryKeith Packard2014-07-10
| | | | | | Detect when the wider data is present and handle it correctly Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Ensure CSV output is consistentKeith Packard2014-07-10
| | | | | | | Scan entire flight to figure out which columns to include before outputing header or data. Limit data output to values which are valid. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Clean up GPS DOP support in AltosStateKeith Packard2014-07-10
| | | | | | | | | Parse out hdop/pdop/vdop from telem and eeprom. Deal with legacy eeprom files that have dop/100 instead of dop/10 values. Clear state DOP values to MISSING at startup Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Support multiple telemetry ratesKeith Packard2014-07-05
| | | | | | | Altos now supports 2400 and 9600 baud in addition to the classic 38400 baud rate. Add support to altoslib for these as well Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Preserve receiver_serial across state reset for new transmitterKeith Packard2014-07-05
| | | | | | | | When the transmitter serial or flight number changes, we re-init the state information, but we want to preserve the receiver serial number so that the log file has that in the name Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Disable telemetry while getting config dataKeith Packard2014-07-05
| | | | | | | | | | We're seeing some log files created without a suitable -via- number included. My hypothesis is that incoming telemetry is getting interleaved with the configuration data containing the serial number. This change simply disables telemetry while retrieving the configuration data to try and keep that from happening. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/telegps: Expose configurable APRS SSIDKeith Packard2014-06-22
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* java: Bump java library versions for next releaseKeith Packard2014-06-16
| | | | | | Prepare for future release by bumping java versions now Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/telegps: Use menus for frequency list and telemetry formatsKeith Packard2014-06-16
| | | | | | | This will let us move them into the Mac OS X menu bar, as well as making them look a bit nicer. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: When GPS disappears, set range and elevation to MISSINGKeith Packard2014-06-14
| | | | | | | Use MISSING instead of bogus values so that displayers can tell what to do. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add units converters for latitude and longitudeKeith Packard2014-06-14
| | | | | | Makes display of these values consistent across all instances Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Correctly save firmware version in AltosStateKeith Packard2014-06-13
| | | | | | It wasn't getting cloned Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add conversion class for voltagesKeith Packard2014-06-13
| | | | | | Provide a common presentation for voltage values Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove telem monitoring when closing log fileKeith Packard2014-06-13
| | | | | | | If we don't remove the telemetry monitor, the telemetry device will still be sending telemetry, which isn't good. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Call state.set_serial first for telemetry parsingKeith Packard2014-06-13
| | | | | | | If we ever get around to supporting multiple simultaneous remote devices, we'll need to notice that the serial changed right away Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Report GPS height when baro height is not availableKeith Packard2014-06-11
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add pyro firing time configurationKeith Packard2014-06-11
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use GPS seconds as an additional sort key for TeleGPS eepromKeith Packard2014-06-11
| | | | | | | | Long idle periods with TeleGPS can easily overflow 16 bits of tick count. Using the GPS seconds provides an additional sort which will span the tick wrap-around. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use GPS speed/height values when other sensors are missingKeith Packard2014-06-10
| | | | | | | | This lets TeleGPS report height/speed values without needing to customize every AltosState user to pull out GPS values when the other sensors aren't present. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Split battery graph enable out from other adc enablesKeith Packard2014-06-10
| | | | | | | | This lets TeleGPS just show the battery voltage values without also adding enable lines for the other flight computer ADC values like ignitor voltages. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Check for time going backwards when replaying from fileKeith Packard2014-06-10
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add new 'stateless' flight state for TeleGPSKeith Packard2014-06-10
| | | | | | | TeleGPS has no flight state, so add a new 'stateless' state for code to handle this case differently than any of the existing states Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: TeleGPS no longer logs satellite informationKeith Packard2014-06-10
| | | | | | This doubles the amount of space available to log position information Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui/telegps: Switch TeleGPS config to motion/intervalKeith Packard2014-06-10
| | | | | | | | TeleGPS had configurable boost-detect values; those have been replaced with a configurable stop-tracking motion limit and logging/telemetry interval value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui/telegps: Change log size configurationKeith Packard2014-06-10
| | | | | | | | | | | | | * Use new log-space value provided by firmware when available. * Divide that up into 1-8 flights and offer those sizes as options to the user instead of a fixed set of sizes. * Show how many flights each selection will store * This also checks values provided by the user Signed-off-by: Keith Packard <keithp@keithp.com>
* Revert "altoslib: Parse TeleGPS state value from GPS telemetry packet"Keith Packard2014-06-08
| | | | This reverts commit d69547796caf74405f8304d23d4ae318315bbd7b.
* altoslib: Recover battery voltage from TeleGPS configuration packetKeith Packard2014-06-07
| | | | | | | | TeleGPS stuffs battery voltage in the apogee_delay slot of the configuration packet. Pull it out from there and stick it into the current state. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: TeleMega uses 5.6k/10k divider for v_battKeith Packard2014-06-07
| | | | | | | I suspect the 15 and 27 values are a 'close approximation' for integer work on the cc1111 devices Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Parse TeleGPS state value from GPS telemetry packetKeith Packard2014-06-07
| | | | | | | TeleGPS adds 0x80 to the state value to signify that this otherwise unused byte contains the current state value Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Record whether flight data includes sensor values in AltosFlightStatsKeith Packard2014-06-07
| | | | | | Provide a way to elide the usual flight data from a graph for TeleGPS Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add TeleGPS log parsing codeKeith Packard2014-06-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: All products with logging have the 'l' commandKeith Packard2014-06-07
| | | | | | | | Instead of listing products with the 'l' command, just exclude products that don't have logging from using the 'l' command to collect the number of stored flights. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add missing AltosConfigDataException fileKeith Packard2014-06-02
|
* altosui: Display error message when parsing pyro channel values failsKeith Packard2014-06-02
| | | | | | | | | Build an exception handling chain to get numeric parse errors propagated all the way back to the original 'save' command and up into a dialog window, including the pyro channel, field and value that were in error. Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Add config for tracker starting distancesKeith Packard2014-05-30
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Add graph displayKeith Packard2014-05-29
| | | | | | Moved the altosui graph files to altosuilib and fixed things up. Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Add info tableKeith Packard2014-05-29
| | | | | | | Move a couple of files from altosui to altosuilib, hook up the info table after changing it to implement the AltosFlightDisplay interface Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Add 'Info' tabKeith Packard2014-05-28
| | | | | | | This contains a summary of the tracking info, including position, speed and course. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: When log-format is missing, use productKeith Packard2014-05-28
| | | | | | | log-format was added for 1.0; earlier log files don't include that, but do say which product they're from. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosuilib: Change versions to altoslib:4, altosuilib:2Keith Packard2014-05-25
| | | | | | API has changed for these libraries, time to bump the file versions Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/altosuilib/altoslib: Move more stuff out of autosui. Reduce site map ↵Keith Packard2014-05-25
| | | | | | | | | | | memory Prepare to share with TeleGPS application. This also has the changes to the site map tile which cache only a few images and regenerate the flight path on the fly, saving piles of memory Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Move CSV/KML output code to altoslibKeith Packard2014-05-22
| | | | | | It's sharable, so share it Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Remove debug printf about beep configKeith Packard2014-05-15
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Parse remaining mega AO_LOG_FLIGNT and AO_LOG_GPS_TIME fieldsKeith Packard2014-05-08
| | | | | | | GPS fields past 'day' were not getting parsed. Ground values for the IMU were not getting parsed, but a false 'temperature' value was being read. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add a comment to remind us to fix the IMU code to deal with ↵Keith Packard2014-05-08
| | | | | | calibration Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add configuration UI for beeper toneKeith Packard2014-05-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Track pyro firing state when reading mega eeprom filesKeith Packard2014-04-30
| | | | | | | TeleMega records whether each pyro has been fired in the eeprom file; track that in the AltosState record. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui/altosuilib/libaltos: Remove trailing whitespaceKeith Packard2014-04-11
| | | | | | Just cleaning up the source code. Signed-off-by: Keith Packard <keithp@keithp.com>