summaryrefslogtreecommitdiff
path: root/altoslib
Commit message (Collapse)AuthorAge
...
* altoslib: Reset telem tracking state when switching altimetersKeith Packard2012-11-18
| | | | | | | This discards any local state when the new telem packet has a different serial number Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Allow flight number to be zeroKeith Packard2012-11-18
| | | | | | | | It's zero when there's no storage space on the device. Instead of waiting for non-zero flight number, wait for the seen_flight bit to be set in the telem tracking state Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: MegaMetrum data telem packets have sensor data, not flight noKeith Packard2012-11-18
| | | | | | | Setting the seen_flight bit without a flight number leads to bogus file names Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add (disabled) conversion for MS5611Keith Packard2012-11-18
| | | | | | | In case we actually end up shipping an MS5611-based board at some point, it will be nice to have the java code on hand Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: capitalize 'Invalid' state name appropriatelyKeith Packard2012-10-22
| | | | | | | It shouldn't ever appear, but it seemed wrong to have it not match the rest of the strings. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/altoslib: Add support for configuring pyro channelsKeith Packard2012-10-22
| | | | | | | This provides a UI on devices which have pyro channels other than main/apogee. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add AltosRecordNone.javaKeith Packard2012-10-21
| | | | | | oops. forgot a file. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Parse GPS .mega file entries for reply/graphingKeith Packard2012-10-21
| | | | | | | | The .mega file parsing had a pile of leftovers from when it was cloned from the .eeprom file parsing code. Replace all of that with the right parsing bits so that GPS data will be presented correctly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Move computed state from AltosRecord to AltosStateKeith Packard2012-10-21
| | | | | | | Make AltosRecord simply track the raw data and have AltosState hold all computed values, including cross-packet averages and computed speeds. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Compute accelerometer speed from megametrum eeprom dataKeith Packard2012-10-21
| | | | | | Duplicates code from the TM eeprom state tracking code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: remove a couple of TM log record types from MM log parsingKeith Packard2012-10-21
| | | | | | PRESSURE and DEPLOY log records don't occurin MM eeprom files. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: MegaMetrum eeprom never loses GPS dateKeith Packard2012-10-21
| | | | | | | | TeleMetrum had a firmware bug that would fail to record the GPS date and time correctly, that was hacked around in altosui, but isn't needed for MegaMetrum. Remove those hacks from the MM path. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Accept serial number of zero for eeprom downloadKeith Packard2012-10-16
| | | | | | | | AVR-based products don't have a valid serial number, and so usually report 0. Accept this by making the 'no serial number' case check for negative values. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge remote-tracking branch 'mjb/altosdroid'Keith Packard2012-09-20
|\
| * altoslib: make parts of AltosLog public for usage outside altoslib.Mike Beattie2012-09-18
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altos{lib,ui,droid}: move OS specific code out of altoslibMike Beattie2012-09-18
| | | | | | | | | | | | | | | | | | This is to allow the usage of AltosLog on Android - no swing, so we need to push the "home directory" code used to pick a default telemetry logging path - using the PreferencesBackend interface for now. Signed-off-by: Mike Beattie <mike@ethernal.org>
| * Merge branch 'prefs_interface' into altosdroidMike Beattie2012-09-16
| |\
* | \ Merge remote-tracking branch 'mjb/prefs_interface'Keith Packard2012-09-20
|\ \ \ | | |/ | |/|
| * | altosui/altoslib: Add call to …Preferences.init() with backend object, ↵Mike Beattie2012-09-14
| | | | | | | | | | | | | | | | | | remove static init() Signed-off-by: Mike Beattie <mike@ethernal.org>
| * | altoslib: Add AltosPreferencesBackend.java to Makefile.amMike Beattie2012-09-14
| | | | | | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * | altosui/altoslib: add methods to interface, fix imports/exceptions in BT codeMike Beattie2012-09-14
| | | | | | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * | altoslib/altosui: begin moving preferences "backend" into interfaceMike Beattie2012-09-14
| | | | | | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* | | altosui: Gather Tm sensor data in Monitor Idle modeKeith Packard2012-09-16
| |/ |/| | | | | | | | | | | | | Tm is pretty much the same as TM for the analog sensors, it's just missing the accelerometr. Use the same code for constructing an AltosRecord for it Signed-off-by: Keith Packard <keithp@keithp.com>
* | altoslib: Update GPS seen_values in AltosEepromIterableKeith Packard2012-09-14
| | | | | | | | | | | | | | Otherwise, KML export won't ever get GPS data to write. Reported by: Bob Brown <prefect@kloudbusters.org> Signed-off-by: Keith Packard <keithp@keithp.com>
* | altoslib: Remove duplicate seen_ values in AltosEepromIterableKeith Packard2012-09-14
|/ | | | | | These are defined in AltosRecord; duplicating them is not a good plan Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Leave new_gps indication until gps value is usedKeith Packard2012-09-12
| | | | | | | | | | | | During replay, AltosState may not see a new GPS value as soon as it lands in the state field as additional records with the same timestamp may come in after the GPS record. Instead of resetting the new_gps indication when the new record is created, wait until the new_gps indication is seen by the AltosState update code and have that clear the new_gps indication. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Lock access to preferences dataKeith Packard2012-09-12
| | | | | | | These are accessed by several different threads, so keep things sane by just holding locks across all access. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Initialize flight velocity to zero when reading eeprom filesKeith Packard2012-09-12
| | | | | | | | Otherwise, the integration of velocity will start at MISSING and get stranger. Fortunately, we know the initial velocity of the rocket when sitting on the pad. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Don't say a decimal point for distances in metersKeith Packard2012-09-11
| | | | | | Useful for distances in miles, but not meters. Signed-off-by: Keith Packard <keithp@keithp.com>
* Use ft/s for imperial speedsKeith Packard2012-09-11
| | | | | | Bob Brown thinks this unit will be more useful than mph Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add imperial units conversion supportKeith Packard2012-09-10
| | | | | | "Redneck" mode support Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add in a bunch of java files mising after Mike's cleanupsKeith Packard2012-09-09
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge remote-tracking branch 'mjb/altoslib_mjb'Keith Packard2012-09-09
|\
| * altoslib: move distinct classes to separate files.Mike Beattie2012-09-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altoslib: remove obsolete classMike Beattie2012-09-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altoslib: move distinct classes to separate filesMike Beattie2012-09-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altoslib: remove duplicate AltosGPSQuery classMike Beattie2012-09-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altoslib: remove duplicate AltosIdleMonitor classMike Beattie2012-09-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altoslib: rename AltosIdleRecordTM.java to AltosGPSQuery.javaMike Beattie2012-09-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altoslib: remove dead codeMike Beattie2012-09-07
| | | | | | | | | | | | (if object creation fails, an exception will be thrown - not return null) Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altoslib: resolve argument/variable ambiguityMike Beattie2012-09-07
| | | | | | | | | | | | (and comment out set_flags() which had no corresponding variable anyway) Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altoslib: comment out unused methodsMike Beattie2012-09-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altoslib: access static variables via class, not instanceMike Beattie2012-09-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altoslib: comment out un-used variablesMike Beattie2012-09-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altoslib: Remove un-needed importsMike Beattie2012-09-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* | altosui: Use helper functions to access arrays in AltosLib classKeith Packard2012-09-09
| | | | | | | | | | | | | | These deal with out-of-range values correctly, instead of causing exceptions that will just break stuff. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altoslib: add missing manufacturer parsing for AltosConfigDataMike Beattie2012-08-31
|/ | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosui: Move 'implements Runnable' from AltosSerial to AltosLinkKeith Packard2012-08-04
| | | | | | AltosLink is the class providing the 'run' method, after all... Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Handle Monitor Idle errors betterKeith Packard2012-07-29
| | | | | | | | Deal with missing data by checking for MISSING in more places. Handle serial communication failures during send by reporting back from libaltos. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Move AltosIgnite.java to altoslibKeith Packard2012-07-22
| | | | | | To be shared with altosdroid eventually Signed-off-by: Keith Packard <keithp@keithp.com>