summaryrefslogtreecommitdiff
path: root/altoslib/AltosPreferences.java
Commit message (Collapse)AuthorAge
* Bump java lib versions to 13Keith Packard2018-08-15
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix freq preference loadingKeith Packard2017-08-28
| | | | | | | Allocate throw-away freq array to get the class pointer. Add null-ary AltosFrequency constructor for JSON code. 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: 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>
* 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: Use reflection JSON code for frequency preferencesKeith Packard2016-06-17
| | | | | | | This replaces the non-reflective JSON code with reflective code, which is much shorter. 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: 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>
* altoslib: Store common frequencies in library version-independent formKeith Packard2016-05-12
| | | | | | | | | | | | | | | Serializable Objects in java are very specific to the class being serialized. As we bump the name of the library on a regular basis to note API/ABI issues, this mean a saved a Serializable object in the preferences database will fail to load across library version upgrades. The saved tracker state and saved common frequencies were the only objects saved in this form; this patch adds infrastructure for writing objects in a version-independent form, and then adds support for saving frequencies in that form. 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: Flush during set_state. Don't store listener state.Keith Packard2016-04-30
| | | | | | | | The listener state wasn't used anyways, so don't bother storing it. Also, flush the state during set_state, which actually causes the state to be written out. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Make AltosPreferencesBackend abstract. Add set/put SerializableKeith Packard2016-04-28
| | | | | | | This lets us add functionality to this directly, such as the new serializable APIs. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Split setup functions to separate dialogKeith Packard2016-04-26
| | | | | | | Remove them from the options menu, handle all preferences through listeners. 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>
* altoslib: Add debugging to AltosPreferences.state() etcKeith Packard2016-04-19
| | | | | | | This let me find why AltosDroid was losing the last state information for each target. 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: Add preferences for saving/restoring multiple flight statesKeith Packard2015-06-06
| | | | 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>
* altoslib: Create display-independent map support codeKeith Packard2015-05-21
| | | | | | This takes the swing-specific map code and creates a generic version. 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: add AltosPreferences state save/restore interfacesKeith Packard2014-11-15
| | | | | | | | This serializes an entire AltosState object and stores it in the preferences database for later retrieval. AltosDroid uses this to recover the old state data when restarting. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add imperial unit supportKeith Packard2014-09-06
| | | | | | | Provides a menu entry to switch units, changes all value displays to use the AltosLib units conversion code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: create logfiles preference object. check link in existing_dataKeith Packard2014-08-31
| | | | | | | | | The logfiles preference hash wasn't getting created, resulting in crashes. When there was no link, don't try to load existing data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: start restoring from log data on startupKeith Packard2014-08-29
| | | | | | Remember which flight was last being received and reload that file 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>
* 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/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>
* altoslib/altosui/altosuilib/libaltos: Remove trailing whitespaceKeith Packard2014-04-11
| | | | | | Just cleaning up the source code. 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>
* altoslib: Finish AltosState changes. Update version number.Keith Packard2013-09-05
| | | | | | | Removes all of the AltosRecord bits, changes the monitor idle bits to have per-object state updaters. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add non-persistent 'last logdir' preferenceKeith Packard2013-05-09
| | | | | | | This is used to record the last directory for reading or writing log files so that the UI can pop back to the same place next time. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add version numbers to java librariesKeith Packard2013-01-29
| | | | | | | Make our private java library names include a version number so we can ship and install multiple versions at the same time. Signed-off-by: Keith Packard <keithp@keithp.com>
* Change AltosLib to altoslibKeith Packard2013-01-29
| | | | | | Follow Java conventions Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add units change notification listKeith Packard2012-12-31
| | | | | | | This allows the UI to automatically respond to changes in the preferred units. Signed-off-by: Keith Packard <keithp@keithp.com>
* 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>
* 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/altosui: begin moving preferences "backend" into interfaceMike Beattie2012-09-14
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* 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>
* altoslib: Add imperial units conversion supportKeith Packard2012-09-10
| | | | | | "Redneck" mode support Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove un-needed importsMike Beattie2012-09-07
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* 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>
* 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>