summaryrefslogtreecommitdiff
path: root/altoslib
Commit message (Collapse)AuthorAge
* altoslib: Add missing AltosConfigDataException fileKeith Packard2014-06-02
|
* 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>
* telegps: Add graph displayKeith Packard2014-05-29
| | | | | | Moved the altosui graph files to altosuilib and fixed things up. 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>
* 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/altosuilib/altoslib: Move more stuff out of autosui. Reduce site map ↵Keith Packard2014-05-25
| | | | | | | | | | | memory Prepare to share with TeleGPS application. This also has the changes to the site map tile which cache only a few images and regenerate the flight path on the fly, saving piles of memory Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Move CSV/KML output code to altoslibKeith Packard2014-05-22
| | | | | | It's sharable, so share it 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>
* altoslib: Parse remaining mega AO_LOG_FLIGNT and AO_LOG_GPS_TIME fieldsKeith Packard2014-05-08
| | | | | | | GPS fields past 'day' were not getting parsed. Ground values for the IMU were not getting parsed, but a false 'temperature' value was being read. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add a comment to remind us to fix the IMU code to deal with ↵Keith Packard2014-05-08
| | | | | | calibration 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>
* altoslib: Track pyro firing state when reading mega eeprom filesKeith Packard2014-04-30
| | | | | | | TeleMega records whether each pyro has been fired in the eeprom file; track that in the AltosState record. 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>
* 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: Missed a couple of easy mini voltage API changesKeith Packard2014-04-03
| | | | | | | Oh, and Tm was using Em conversions (which is almost right, except Tm doesn't have the history) Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix EasyMini voltage computationsKeith Packard2014-04-02
| | | | | | | | | | Early Em prototypes had a 3.0V regulator. Early v1.0 boards measured power past the blocking diode. Deal with both conditions to try and report more accurate voltages for EasyMini data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Ignore speed/accel after boost when finding maximaKeith Packard2014-04-02
| | | | | | | | Large spikes in acceleration often occur with ejection charges, which can cause bogus acceleration and speed data to be seen. Ignore those for the purpose of computing the maximum values of each. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use existing unicode Charset in AltosLinkKeith Packard2014-02-03
| | | | | | | Instead of making AltosLink look up the unicode charset, just provide it directly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Don't lose gps_height value between GPS samplesKeith Packard2014-01-24
| | | | | | | gps_height is now reliably updated whenever GPS altitude data is received, so don't try to reset it between samples. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Track GPS altitude values to be able to report max gps heightKeith Packard2014-01-24
| | | | | | | This adds separate GPS altitude and GPS ground altitude values so that the AltosState object can report GPS max height. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Validate TeleMega GPS_SAT log packet nsatKeith Packard2014-01-23
| | | | | | Make sure nsat is not more than the size of the array Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fetch target device config for Fire Igniter npyro valueKeith Packard2014-01-21
| | | | | | | | | The code was using the AltosLink config_data, which is always the locally connected device's configuration. When using the packet link, that's not terribly useful when asking how many extra pyro channels are available. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use factory calibration for all acceleration computationsKeith Packard2014-01-14
| | | | | | | | | The ground acceleration value will vary depending on the tilt angle of the airframe, which will result in incorrect acceleration computations during flight. This also avoids accidental boost detect when moving the airframe around in pad mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add AltosOrient class and max_orient()Keith Packard2013-12-28
| | | | | | This adds the class necessary to put orient into a UI. Signed-off-by: Keith Packard <keithp@keithp.com>
* 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>