summaryrefslogtreecommitdiff
path: root/altoslib/AltosState.java
Commit message (Collapse)AuthorAge
* altoslib: Clean up quaternion and rotation interfacesKeith Packard2017-06-22
| | | | | | | | Export euler to quaternion (instead of half_euler). Provide angles to rotate rather than rates and time. Add comments to quaternion and rotation code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Make cal_data private in AltosDataListenerKeith Packard2017-06-20
| | | | | | This way we can create it as needed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib,altosuilib: Bump library version numbersKeith Packard2017-06-13
| | | | | | The API and ABI have changed a bit since 1.7 Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Initialize new imu/mag values. Remove stale imu/mag objects.Keith Packard2017-06-11
| | | | | | | AltosState no longer has imu and mag objects, instead it just holds the values now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove unused 'ground_rotation' from AltosStateKeith Packard2017-06-11
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Compute orientation from eeprom data filesKeith Packard2017-06-08
| | | | | | This was lost in the AltosFlightSeries transformation. Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Get telegps application working againKeith Packard2017-05-27
| | | | | | Many minor API tweaks Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Deal with AltosState changesKeith Packard2017-05-27
| | | | | | | | cal data split out from altos state. altos state needed to have no-arguments constructor for JSON code. Also messed with voice to make it stay quiet during app startup. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Trim stale bits of AltosStateKeith Packard2017-05-26
| | | | | | Much of this is now in AltosCalData. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Make AltosReplayReader start synchronously enough to track statesKeith Packard2017-05-26
| | | | | | | | | | The Altos UI needs to see 'pad' state and then 'boost' state so that it will automatically switch tabs during the flight. When reading from eeprom files, the only way that is going to happen is if the reader thread waits until the UI has definitely seen 'pad' state, which we do by simply delaying the reader thread until after that has happened. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosuilib/altosui: More work towards using AltosFlightSeries for ↵Keith Packard2017-05-25
| | | | | | | | analysis Graphing and CSV seem complete now; stats still missing lots of stuff. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Do data analysis on raw values rather than AltosStateKeith Packard2017-05-25
| | | | | | | | Use AltosFlightSeries instead of a sequence of AltosState records when processing saved data. This provides a better way of doing filtering and plotting. Signed-off-by: Keith Packard <keithp@keithp.com>
* add thrust as a graphable time series typeBdale Garbee2017-05-19
|
* altoslib: Create new abstraction underneath AltosState for recording valuesKeith Packard2017-05-19
| | | | | | | Provides a way for the graph API to see raw data values, instead of those cooked by AltosState. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add set_config_data to AltosStateKeith Packard2017-05-09
| | | | | | Initialize all config-data related state values. Signed-off-by: Keith Packard <keithp@keithp.com>
* Switch from GPLv2 to GPLv2+Keith Packard2016-07-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Get rid of manual JSON encoding stuffKeith Packard2016-06-17
| | | | | | | Now that the reflective JSON stuff is working, we can delete all of the manual code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Improve AltosState save/restore debuggingKeith Packard2016-06-17
| | | | | | | When save/restore generate different values, write out the two versions to one.json and two.json for easy comparison. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove AltosHashSet codeKeith Packard2016-06-15
| | | | | | Everything has switched to JSON now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Switch preserved state format to JSONKeith Packard2016-06-15
| | | | | | This is much easier to debug than the icky strings with backslashes everywhere. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add log_space to AltosStateKeith Packard2016-05-15
| | | | | | | TeleGPS doesn't have flight_log_max value, but does have log_space which we can use for the same thing in monitor idle mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Store saved state in version-independent formatKeith Packard2016-05-12
| | | | | | | Use AltosHashSet for AltosState so that AltosDroid doesn't lose tracker information when the application is upgraded. Signed-off-by: Keith Packard <keithp@keithp.com>
* Bump java library versionsKeith Packard2016-05-12
| | | | | | Prepare for 1.6.4 release Signed-off-by: Keith Packard <keithp@keithp.com>
* Update java library version numbersKeith Packard2016-04-21
| | | | | | Prepare for 1.6.3 release. Signed-off-by: Keith Packard <keithp@keithp.com>
* Update java library versionsKeith Packard2016-01-10
| | | | | | altoslib is API incompatible with 1.6.1 release due to altos.state updates. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Hide 'state' member and use accessor functionKeith Packard2015-10-13
| | | | | | | | Someone was smashing the state to 'landed' when no packets had been received for a while. Found that by making it impossible for anyone outside of AltosState to change the value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add companion telemetry data supportKeith Packard2015-08-20
| | | | | | This got lost in the great telemetry rewrite Signed-off-by: Keith Packard <keithp@keithp.com>
* Bump Java library versionsKeith Packard2015-07-15
| | | | | | Avoid problems if you have an old version of the library installed Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Typo slipped into AltosState.javaKeith Packard2015-06-23
| | | | | | Oops. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use a longer filter for descent valuesKeith Packard2015-06-23
| | | | | | This makes descent speeds almost useful, a huge improvement Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Expose public function to set state.productKeith Packard2015-06-17
| | | | | | Just adds a setter function for this value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosuilib: Update library version to 7Keith Packard2015-05-25
| | | | | | So many ABI/API changes Signed-off-by: Keith Packard <keithp@keithp.com>
* Bump java library versionsKeith Packard2015-02-07
| | | | | | | Lots of minor API/ABI changes; make sure people can install both 1.5 and 1.6 at the same time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Make AltosState serializableKeith Packard2014-11-15
| | | | | | This involved making every class it references serializable as well Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Compute tilt angle from eeprom dataKeith Packard2014-10-04
| | | | | | | | | | | | | | | | This copies the computation of tilt angle from the firmware so that post-flight analysis can also show the data. This change also renames all of the imu values to make them easier to understand: accel gyro axis along roll length of the board across pitch across the board through yaw through the board. 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: 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: 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>
* 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>
* 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: Correctly save firmware version in AltosStateKeith Packard2014-06-13
| | | | | | It wasn't getting cloned 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>
* 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>
* 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>
* 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: 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>
* 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>