summaryrefslogtreecommitdiff
path: root/altoslib/AltosConfigData.java
Commit message (Collapse)AuthorAge
* altoslib: Add support for EasyMega-v2Keith Packard2018-10-20
| | | | | | | adxl375 instead of mma6555. mpu9250 rotated 90° compared with other megas. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add ADXL375 support and EasyMega v2.0 supportKeith Packard2018-10-19
| | | | | | EasyMega v2.0 replaces the MMA655X with an ADXL375 part. Signed-off-by: Keith Packard <keithp@keithp.com>
* Bump java lib versions to 13Keith Packard2018-08-15
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Revert field name changes for accel cal valuesKeith Packard2018-05-30
| | | | | | | These names get written in the JSON part of all .eeprom files, so we can't change the names or the values won't be read and written correctly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Keep config data accel cal in antenna up form.Keith Packard2018-04-26
| | | | | | | | | | | | Instead of letting the accel cal data live in whatever form it was fetched in, keep it in antenna up form and provide it in whatever orientation is necessary. This fixes bugs in changing pad configuration where the accel cal values from the old orientation would get used in the new orientation and wreck them. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Correctly parse IMU cal dataKeith Packard2017-09-12
| | | | | | | Was trying to match 'IMU call along' instead of 'IMU cal along', causing the line to not match and losing the IMU accel cal values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Accel calibration UIKeith Packard2017-09-01
| | | | | | Provides a GUI for re-calibrating accelerometers Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Allow for missing product when checking for mma655x invertedKeith Packard2017-08-27
| | | | | | If there's no product, assume we've got some ancient log file. 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: Missing config values now AltosLib.MISSING, not zero or negativeKeith Packard2017-06-11
| | | | | | Also fix AltosConfigData.java Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib, altosuilib, altosui, telegps: Missing config values now MISSINGKeith Packard2017-06-11
| | | | | | | | Config values that didn't apply to the current product used to get set to -1, but now they're set to AltosLib.MISSING to be consistent with the rest of the code. Deal with this in the UI bits. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove debug printfsKeith Packard2017-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Extract a few more values from config to cal_dataKeith Packard2017-05-28
| | | | | | Make it possible to display model/version data in the flight stats table. 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>
* 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: Mark AltosConfigData fields as MISSING until setKeith Packard2017-05-15
| | | | | | Instead of using -1 or 0 randomly, use MISSING consistently. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Hide members from json by prefixing with __Keith Packard2017-05-09
| | | | | | | This lets some structures which would otherwise recurse (and crash) get converted to json, assuming the hidden members aren't relevant. 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: 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>
* altoslib: Deal with TeleMetrum v2.0 MMA6555 being invertedKeith Packard2016-05-02
| | | | | | | | | | | | | | | | Dumping the MMA655X data with the 'A' command provides the raw sensor value. On TM v2.0 boards, the sensor is inverted, and all of the firmware uses the inverted value except for the 'dump the raw data' command. As a result, MonitorIdle was using the un-inverted value and displaying mystic values. I've fixed this in the ground station code by checking the product name and conditionally inverting the value (4095 - value) for TeleMetrum v2.0 products. Unknown products will generate a warning dialog on AltosUI so we'll catch places where we've failed to add a new product name. 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>
* altosui,telegps: Do not allow radio calibration to be editedKeith Packard2016-03-26
| | | | | | | This leads to sorrow for almost everyone. If you want to edit this, use a terminal program. 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>
* 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/altosuilib: Update library version to 7Keith Packard2015-05-25
| | | | | | So many ABI/API changes Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/telegps: Add config option for APRS formatKeith Packard2015-03-02
| | | | | | Allow configuration of APRS compressed/uncompressed 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>
* altosuilib: EEProm download from TeleGPS doesn't have statesKeith Packard2015-02-06
| | | | | | | | | | | | | As TeleGPS doesn't have flight states, the EEProm download progress bar shouldn't show 'state invalid', and it should use a different scale for each block. Fix this by having AltosConfigData know which devices have state based on their log format, then mark the progress bar state limits as 'invalid/invalid' instead of 'boost/landed'. Then have the progress bar use that to set a more reasonable scale for each block. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Store MS5607 data in AltosConfigData for use by AltosMs5607Keith Packard2015-02-06
| | | | | | | | | When doing 'Monitor Idle', we fetch new config data each iteration and pass that to each of the readers, including ms5607. Instead of re-fetching the config data there, just store the ms5607 parameters when we fetch it the first time and copy it over. 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/altosuilib: Add EasyMega supportKeith Packard2014-09-09
| | | | | | | This makes flashing find the right files, and Monitor Idle show all of the state data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Update local callsign/baud rate when using remote protocolKeith Packard2014-09-06
| | | | | | | | We've had code to synchronously update the local and remote radio frequencies when doing configuration over the remote link. This patch adds the same code when changing the call sign and baud rate. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Parse 'Log fixed:' configuration valueKeith Packard2014-08-17
| | | | | | | | | TeleGPS holds a single flight record and constantly appends data to it instead of having separate flight records on the board. It reports 'Log fixed: 1' to let AltosLib know that the size of the per-flight log is not configurable. 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: 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>
* 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: Add pyro firing time configurationKeith Packard2014-06-11
| | | | 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>
* 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>
* 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>
* 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: Remove debug printf about beep configKeith Packard2014-05-15
| | | | 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>
* altosui: Disable flight log configuration while flights are storedKeith Packard2014-04-06
| | | | | | | | The log code won't let you resize the maximum flight log while there is still data on the flight computer; the code to figure that out in the UI was busted, leaving users confused about why it wasn't working. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Bump library versionKeith Packard2013-12-20
| | | | | | | Prepare for next release by making sure we notice that the API/ABI for this library has changed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Hide non-applicable altimeter config valuesKeith Packard2013-12-18
| | | | | | This makes configuring EasyMini a lot easier... Signed-off-by: Keith Packard <keithp@keithp.com>