summaryrefslogtreecommitdiff
path: root/altoslib
Commit message (Collapse)AuthorAge
...
* altosui: Extend Fire Igniter to additional channelsKeith Packard2013-12-21
| | | | | | This lets the UI test fire other pyro channels on TeleMega 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: Fetch 'orient' value from Mega Sensor packetKeith Packard2013-12-20
| | | | | | | The mega sensor packet had a spare byte to hold the current orientation value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Convert IMU and Mag sensor values to useful unitsKeith Packard2013-12-20
| | | | | | Convert from raw sensor values to metric units Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove some old debug printfs for self flashingKeith Packard2013-12-18
| | | | | | These aren't necessary anymore and just slow down flashing boards. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Remove some debug printfsKeith Packard2013-12-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Define 3.8 as a good battery and 3.5 as a good igniterKeith Packard2013-12-18
| | | | | | | Use defined values everywhere instead of copying. Adjust battery up to 3.8 to ensure there's enough voltage to not trip the comparators Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: create eeprom download thread before telling monitor about itKeith Packard2013-12-18
| | | | | | | Telling the monitor too early resulted in passing a null thread handle, which meant that 'cancel' wouldn't ever work. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Don't close telemetry reader at startup unless something failsKeith Packard2013-12-18
| | | | | | Was always closing the file, which led to very little telemetry being received. 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>
* altoslib: Pass InterruptedException up the stack instead of hiding itKeith Packard2013-12-18
| | | | | | | | | | When interrupting a thread that is talking to a serial device, it's important not to have that thread discard the InterruptedException so that it will actually terminate. This patch removes a bunch of places that were discarding InterruptedExceptions and lets higher level code see them so that they can exit cleanly. Signed-off-by: Keith Packard <keithp@keithp.com>
* java: Add -target 1.6 to all java compilesKeith Packard2013-12-10
| | | | | | This makes sure the results can run with the old JVM Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Don't require radio_cal or usb_descriptors in AltosRomconfigKeith Packard2013-12-08
| | | | | | Not all products will have these values, so allow them to be missing Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add self-flashing codeKeith Packard2013-12-08
| | | | | | | This adds the ability to use the AltOS flash-loader on both STM and NXP processors. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add AltosNoSymbol exceptionKeith Packard2013-12-08
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use symbols in AltosRomconfig instead of fixed offsetsKeith Packard2013-12-08
| | | | | | | | | The new Hexfile symbol code automatically adds the needed romconfig symbols for cc1111 products, and ARM-based products have symbols in the .ihx files. This means that we can rely on using symbols when finding config values in memory. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Publish mapping from product name back to USB idKeith Packard2013-12-08
| | | | | | This lets us choose which device to flash based on the filename Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Create AltosProgrammer classKeith Packard2013-12-08
| | | | | | | This provides an abstract interface to flashing boards, for dongle-based and self-programming boards. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add symbols to .ihx filesKeith Packard2013-12-08
| | | | | | | Create a new 0xfe record type to hold the symbols, and append them after the EOF record so that other tools might continue to work. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Support binary reading/writing in AltosLinkKeith Packard2013-12-08
| | | | | | | Binary reads require an explicit length, and do not work while telemetry is running. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: AltosEepromMonitor had false import of altosuilibKeith Packard2013-12-08
| | | | | | Not needed, and breaks the build Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Handle units in pyro config.Keith Packard2013-11-25
| | | | | | | This lets you edit the pyro configuration using imperial units if desired. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui, altoslib: Move eeprom download code to altoslibKeith Packard2013-11-12
| | | | | | This should make adding eeprom downloading to altosdroid easier Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Make AltosEepromDownload not swing-dependentKeith Packard2013-11-12
| | | | | | Will move to altoslib Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Start moving eeprom download logic to altoslibKeith Packard2013-11-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Raise ParseException on invalid eeprom formatKeith Packard2013-11-12
| | | | | | | Make sure the user knows when data are not downloaded successfully because the UI doesn't understand the eeprom format. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib,altosui: Be more robust when graphing bogus .telem filesKeith Packard2013-10-14
| | | | | | | | | | | | Deal with files containing multiple serial number/flight number values by preserving the boost_tick value across state resets. Check for invalid state when computing actual boost time for the stats window. Ignore invalid speed/accel values when computing averages. Signed-off-by: Keith Packard <keithp@keithp.com>
* Change differentiation filter constants and limitsKeith Packard2013-10-07
| | | | | | | Larger limits avoids clipping legit data. Using the same filter time for both ascent and descent makes the results look a bit cleaner. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add TeleMini v2.0 telemetry supportKeith Packard2013-09-19
| | | | | | Includes AltosLib and ao-telem Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Prefer averaged ground pres for ground alt computationKeith Packard2013-09-19
| | | | | | | | If ground pressure is recorded (as from an eeprom file), then prefer that value to the average of the pre-boost ground pressures when computing the ground altitude. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Include device name in Table viewKeith Packard2013-09-06
| | | | | | It's part of the telemetry, so we might as well display it Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: TeleMetrum v2 telemetry includes computes Pa/°C, not raw valuesKeith Packard2013-09-06
| | | | | | | Telemetry sends converted pressure/temp values as it doesn't include the MS5607 calibration data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add receiver serial to telem file namesKeith Packard2013-09-06
| | | | | | Makes it easy to record telemetry from multiple sites and compare them later. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add TeleMini eeprom file to Makefile.amKeith Packard2013-09-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Lock access to AltosLink config_dataKeith Packard2013-09-06
| | | | | | | Prevents multiple callers from trying to get config data at the same time and messing up the serial line Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Set 'valid' for valid TeleMetrum eeprom downloadKeith Packard2013-09-06
| | | | | | | Had separate 'tick_valid' value, which wasn't useful as the supertype didn't look there. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui: Add TeleMini-v1.0 eeprom supportKeith Packard2013-09-06
| | | | | | Got lost in the AltosState transition Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove debug printf from AltosTelemetryMetrumSensorKeith Packard2013-09-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Rewrite AltosTelemetryIterableKeith Packard2013-09-05
| | | | | | Sort while reading instead of sorting separately. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Record time_change in AltosState correctlyKeith Packard2013-09-05
| | | | | | time_change is used to make real-time playback work. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Update received time when replaying flightsKeith Packard2013-09-05
| | | | | | | Received time is otherwise recorded as the time when the packets were read from the file, which doesn't work in real-time playback Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Only open log file when both flight and serial are knownKeith Packard2013-09-05
| | | | | | | Some telemetry formats include serial and flight in different packets, so wait for both before creating the file Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use AltosTelemetry.parse to pull telem lines apartKeith Packard2013-09-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove more AltosRecord based filesKeith Packard2013-09-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: remove AltosRecord based eeprom codeKeith Packard2013-09-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove AltosRecord-based telemetry codeKeith Packard2013-09-05
| | | | | | All of this is now AltosState based Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: convert rogue files to unix line endingsMike Beattie2013-09-05
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* 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: Set measured acceleration for measured accelerationKeith Packard2013-09-03
| | | | | | Was setting computed acceleration even for measured data Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Clear sat data when tick changesKeith Packard2013-09-03
| | | | | | | Sat data comes in multiple records, but the tick is always the same, so use that to tell when the set of sats is new Signed-off-by: Keith Packard <keithp@keithp.com>