summaryrefslogtreecommitdiff
path: root/altosuilib
Commit message (Collapse)AuthorAge
* Use discovered java path for compiler and jni include filesKeith Packard2019-07-17
| | | | | | | | Instead of using the discovered java bits just for jni.h, also use javac from that directory. Add JAVA_VERSION param to set language version for newer compilers. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Don't crash when flashing an unknown deviceKeith Packard2019-07-16
| | | | | | | An unknown device will not have a config; check for that before showing radio calibration dialogs. Signed-off-by: Keith Packard <keithp@keithp.com>
* Use strip-nondeterminism to fix JAR timestampsKeith Packard2019-02-03
| | | | | | | | .jar files are just zip files, and contain dates. These will cause the build to be non-reproducible. Use strip-nondeterminism to smash all of these back to a fixed value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: When flashing hardware, pull USB data from device if neededKeith Packard2018-10-20
| | | | | | | | | | | | If we fail to extract USB vid/pid and product values from the device ROM, use the data discovered over USB when the device was originally discovered. Also, use the USB product to select appropriate .ihx files instead of only using the USB vid/pid. This will help people avoid using the wrong file when reflashing devices. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Leave some map debug code around for the futureKeith Packard2018-10-07
| | | | | | Displays lat/lon on each map tile. Commented out for production use. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/altosdroid: Change message in forbidden map tilesKeith Packard2018-10-07
| | | | | | These are outside of *known* launch areas. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: InputEvent.getModifiers is deprecated, use getModifiersExKeith Packard2018-10-07
| | | | | | Some java change; seems like it's a no-op for us. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/altosdroid: Disable offline map type selectionsKeith Packard2018-10-07
| | | | | | | Our server only supports hybrid maps for now. If that changes, we can re-add this support easily enough. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Remove GrabNDrag.javaKeith Packard2018-10-07
| | | | | | This isn't used anymore. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Fix offline map messages to match new meaningsKeith Packard2018-10-06
| | | | | | forbidden means outside of launch area. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Switch to maps.altusmetrum.org when no google map key is availableKeith Packard2018-10-06
| | | | | | | The map key is only usable from maps.altusmetrum.org at this point, and that service will be proxying for everyone in the near future. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Fetch RF calibration value for TBT v4.0 units from webKeith Packard2018-10-02
| | | | | | | | | | We shipped a pile of TBT v4.0 units without programming the RF calibration value into flash. This change checks to see if the target is in the right serial number range and has the default RF calibration value, in which case it fetches the RF calibration value from our web site. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Provide dialog while waiting for flash target to re-appearKeith Packard2018-08-22
| | | | | | | | On windows, switching to the boot loader can take a long time. Instead of timing out after a second, show a dialog and let the user cancel the operation if they get bored of waiting. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Include device path in equals test of AltosUSBDeviceKeith Packard2018-08-22
| | | | | | | Ensure that multiple AltosFlash devices don't appear the same; they all use serial number 1. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use common constants for flash action messagesKeith Packard2018-08-22
| | | | | | | Place messages in AltosFlashListener instead of using the same strings in three different places. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Don't show radio parameter when reflashing radioless devicesKeith Packard2018-08-22
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Show a more useful message when the flash target device is unknownKeith Packard2018-08-22
| | | | | | | | | The flashing code uses the new symbol table to find information in the existing device; if they don't match at all, there won't be anything about the target device known. Tell the user this, rather than displaying mystic information (or crashing). Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Poll for devices while Select Device dialog is displayedKeith Packard2018-08-22
| | | | | | | | | Lets the user plug/unplug devices and have the dialog box show the current set of available devices. Particularly useful on Windows where it takes a long time after connecting a device for the OS to actually make it usable. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Add 'equals' method to AltosDeviceKeith Packard2018-08-22
| | | | 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>
* altosuilib: Split cc1111 vs arm telefire/telemini for flashingKeith Packard2018-07-02
| | | | | | | Only older telefire and telemini boards had cc1111 processors and need pair-programming. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosuilib: Validate rom image is for target deviceKeith Packard2018-01-12
| | | | | | This should avoid mis-programming devices with incorrect firmware. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Improve EEprom downloadKeith Packard2017-11-11
| | | | | | | | | * Catch and report CRC errors * Deal with corrupted flight records * Add ability to immediately graph new data * Check before overwriting existing files Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: New line styles and colors for graphs. Selectable line widthKeith Packard2017-11-11
| | | | | | | | Improve the readability of graphs by offering a better selection of colors and adding line styles. Let the user configure the line width as desired. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Add 'show marker' button to graphsKeith Packard2017-10-04
| | | | | | | Provides a marker at each actual data point which can be useful for sparse data sets like telemetry with poor reception. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add user-selectable filter width for data smoothingKeith Packard2017-10-02
| | | | | | | | | Also switch smoothing window to Kaiser and change default accel filter width to 1 second instead of 4 seconds. Now users can play with the filter and see what it does. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Show raw tick values in graph and info tableKeith Packard2017-10-02
| | | | | | | Not terribly useful, but did help validate firmware handling of tick wrapping, so we'll keep it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Don't drain voice when terminating displayKeith Packard2017-10-02
| | | | | | | If the voice thread is wedged (as with PulseAudio and un-patched freetts 1.2.2), we'll get stuck here and the UI will freeze up. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Make steps in accel cal default buttonKeith Packard2017-09-12
| | | | | | This way you can just hit return through the process. 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>
* altosuilib: Add "Huge" font sizeKeith Packard2017-08-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Deal with multiple motors in flight statsKeith Packard2017-06-27
| | | | | | Combine boost/fast/coast sections when computing ascent stats. 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>
* altosuilib: Rename AltosGraphNew to AltosGraphKeith Packard2017-06-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Rename AltosUIGraphNew to AltosUIGraphKeith Packard2017-06-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Don't display pad, last location in flight stats without gpsKeith Packard2017-06-12
| | | | | | Check stats.have_gps before displaying pad and last known location values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui, telegps, altosdroid: say ground distance, not total rangeKeith Packard2017-06-11
| | | | | | Ground distance is more useful in predicting recovery than total range. 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: Compute 'vertical acceleration' for eeprom filesKeith Packard2017-06-08
| | | | | | | | This uses the computed orientation to find the portion of the measured acceleration which is vertical and then shows that in the post-flight analysis graph. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib,altosuilib: Remove stale source filesKeith Packard2017-05-28
| | | | | | These aren't built any longer Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Set graph title to include product/serial/flight infoKeith Packard2017-05-28
| | | | | | Better than "Flight" Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Display product/firmware version in stats tableKeith Packard2017-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Create data file open helper in AltosLibKeith Packard2017-05-28
| | | | | | | Use InputStream everywhere, instead of Reader. Create private string input stream as java one is deprecated. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Remove 'cal_data' param from AltosGraphNew constructorKeith Packard2017-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Make AltosFlightStatsTable neaterKeith Packard2017-05-27
| | | | | | Elide missing data, change titles when data are simpler 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>
* altoslib: Make sure AltosFlightSeries is filled in before useKeith Packard2017-05-26
| | | | | | | After all of the raw data is captured, the derived data needs to be computed by calling the 'finish' function. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib,altosuilib,altosui: Get stats and replay working again.Keith Packard2017-05-26
| | | | | | | | Stats are really easy with all of the data in memory. Replay takes a special thread to run the data and dump it into a single state. 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>