summaryrefslogtreecommitdiff
path: root/altoslib
Commit message (Collapse)AuthorAge
* 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>
* altosui: Make scan UI handle incremental telem dataKeith Packard2012-07-18
| | | | | | | | | The new telem format doesn't send everything in each telem packet, so we need to handle updating information incrementally in the scan results. This involved clearing old scan data when switching frequencies and then updating existing entries with new data as it arrives. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Move idle monitor managing code to altoslibKeith Packard2012-07-17
| | | | | | More stuff to be shared (potentially) Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Don't use MISSING values in max computationsKeith Packard2012-07-17
| | | | | | | Early telemetry state may be missing critical data, don't use MISSING values in computing max ranges. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix MM conversion functionsKeith Packard2012-07-17
| | | | | | | Pressure is already reported in Pa, no need to convert that. Voltage divider computations were backwards. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Move serial datastream parser to altoslibKeith Packard2012-07-16
| | | | | | instead of having it in altosui Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Abstract remote connection timeout stuffKeith Packard2012-07-11
| | | | | | | This moves some of the logic for managing when to present the 'cancel' dialog for remote operations to altoslib. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Remove a bunch of debugging printfsKeith Packard2012-07-11
| | | | | | These aren't useful at this point. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: AltosSerial and AltosLink both tried to provide frequency settingKeith Packard2012-06-26
| | | | | | | | AltosLink owns all of the device configuration, so remove that from AltosSerial and make sure that AltosLink provides the right function signatures (wasn't using the new direct frequency setting command). Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Support MM telemetry packetsKeith Packard2012-06-21
| | | | | | | Required restructuring the whole telemetry system to provide abstract interfaces to flight data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add rudimentary MM support to altosuiKeith Packard2012-06-17
| | | | | | | | | Decoded the MM sensor packets as if they were TM packets. Add the USB ids. Add class of 'altimeter' devices and match those instead of just telemetrum as appropriate. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Move product definitions from AltosUI to AltosLibKeith Packard2012-06-17
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Catch timeout errors when setting up TD telem monitoringKeith Packard2012-06-17
| | | | | | Close the port in this case so it can be used for other things. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: More changes to migrate code to altoslibKeith Packard2012-06-04
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: attempt to get ms5607 data into .mega files was misinformedKeith Packard2012-06-04
| | | | | | | The ms5607 'p' command also means 'go into packet mode', which nicely broke attempts to communicate with teledongle Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: More cleanups for moving files to altoslibKeith Packard2012-06-04
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Clean up random rebase failuresKeith Packard2012-06-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Move new sensor library code into altoslibKeith Packard2012-06-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Move altoslib sources to top dirKeith Packard2012-06-02
| | | | | | No sense having them live deep in the file system. Signed-off-by: Keith Packard <keithp@keithp.com>
* Ignore generated altoslib filesKeith Packard2012-06-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Move java altoslib to top levelKeith Packard2012-06-02
This will be shared with other (android) java code. Signed-off-by: Keith Packard <keithp@keithp.com>