summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* altoslib: Add constants for speed/accel filteringKeith Packard2017-05-28
| | | | | | With an eye towards letting the user pick. 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>
* 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: Recover from a couple of API changesKeith Packard2017-05-27
| | | | | | Nothing serious. Signed-off-by: Keith Packard <keithp@keithp.com>
* micropeak: Use altoslib/altosuilib flight analysis bitsKeith Packard2017-05-27
| | | | | | Remove custom graph and stats bits and share bits with altosui. 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>
* altoslib: Provide consistent cal_data from idle and replay readersKeith Packard2017-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Return AltosTimeValue from min/max funcsKeith Packard2017-05-27
| | | | | | Allowing the user to have both value and time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Publish boost_time and landed_time from AltosFlightStatsKeith Packard2017-05-27
| | | | | | Nice to be able to use these when displaying data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Allow for other tick sizesKeith Packard2017-05-27
| | | | | | | Use 1/100 sec by default, but provide for MicroPeak which uses a different step. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Change how speed/accel are computed from pressureKeith Packard2017-05-27
| | | | | | | Filter *then* differentiate. This works way better that doing things in the other order. 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>
* altosdroid: Deal with AltosState changesKeith Packard2017-05-27
| | | | | | | | cal data split out from altos state. altos state needed to have no-arguments constructor for JSON code. Also messed with voice to make it stay quiet during app startup. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use cal data temp gps for telemetry data tooKeith Packard2017-05-26
| | | | | | This avoids bouncing the location data during flight Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Remove debug printf.Keith Packard2017-05-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Trim stale bits of AltosStateKeith Packard2017-05-26
| | | | | | Much of this is now in AltosCalData. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Preserve old GPS data during operationKeith Packard2017-05-26
| | | | | | | This avoids having the lat/lon values blank out when the GPS receiver looses lock. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Get KML export working againKeith Packard2017-05-26
| | | | | | Even annotate the states with avg speed/accel for fun. 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>
* altosui: Remove --cat modeKeith Packard2017-05-26
| | | | | | Wasn't documented, didn't do much useful. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Make AltosReplayReader start synchronously enough to track statesKeith Packard2017-05-26
| | | | | | | | | | The Altos UI needs to see 'pad' state and then 'boost' state so that it will automatically switch tabs during the flight. When reading from eeprom files, the only way that is going to happen is if the reader thread waits until the UI has definitely seen 'pad' state, which we do by simply delaying the reader thread until after that has happened. 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>
* altosui: Adapt to AltosFlightSeries for data analysisKeith Packard2017-05-25
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Adapt to AltosFlightSeries data processing planKeith Packard2017-05-25
| | | | | | | Replace use of list of AltosState with AltosFlightSeries to improve data analysis. 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: Don't store computed telemetry fieldsKeith Packard2017-05-23
| | | | | | These values are only needed once, so there's no reason to save them. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Add telegps outlineKeith Packard2017-05-22
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* add thrust as a graphable time series typeBdale Garbee2017-05-19
|
* altosui: Hacks to plug into the new graph stuffKeith Packard2017-05-19
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Start creating new graph interface that takes time series dataKeith Packard2017-05-19
| | | | | | | Replace the AltosState interface so the graph can get better data, and can be used for more stuff. 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: include TimeSeries code in buildBdale Garbee2017-05-19
|
* altosuilib: Add time series subclass with data for generating a plotKeith Packard2017-05-19
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add initial time series functionsKeith Packard2017-05-19
| | | | | | | Provides the basis for offering a sequence of time/value datasets for graphing instead of using AltosState. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telebt-v3.0: Add send_packet commandKeith Packard2017-05-19
| | | | | | Useful for doing host-based RF protocols. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telebt-v4.0: Remove HAS_POLLCHARKeith Packard2017-05-19
| | | | | | This isn't being used anymore. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup: turnon_chaoskey: search for ao-usbload in PATHKeith Packard2017-05-19
| | | | | | Don't assume it's in /usr/bin Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telefireone-v1.0: Fix confusing defines about config storageKeith Packard2017-05-19
| | | | | | | USE_INTERNAL_FLASH is about storing config data in internal flash, and should be on for telefireone. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Set default accel cal for old TeleMetrum v1 filesKeith Packard2017-05-15
| | | | | | | | Before we stashed the config data in the log file, altoslib had to "known" what the accelerometer calibration values should be set to. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Set default log format to FULL until we learn differentKeith Packard2017-05-15
| | | | | | | Ancient log files don't even have a product name in them, so we'll guess TeleMetrum v1. 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>
* re-brand current telefiretwo product as telefireoneBdale Garbee2017-05-15
|
* altos/ao_rn4678: Send '$$$' for new devices. Fix name setting code.Keith Packard2017-05-15
| | | | | | | | | New devices won't respond to the cmd pin we have configured, so get them to command mode by sending the $$$ string. Somehow I'd botched the name setting code and hadn't caught it as I hadn't tried a new device... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf: Fix up serial port flow control configuration bitsKeith Packard2017-05-15
| | | | | | | | | Compute whether any sw/hw flow control is in use. Compute whether hw flow control is in use as a separate value. These make the code a bit easier to follow. Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: Add support for TeleBT-v4.0 bluetooth channel changeKeith Packard2017-05-13
| | | | | | | | The RN4678 in TeleBT v4.0 uses channel 6 instead of channel 1. There is code in the linux bits which discovers this value, but that crashes when run under java for unknown reasons. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Handle TeleBT v4.0 battery voltageKeith Packard2017-05-13
| | | | | | | The device reports raw ADC values, which mean AltosLib needs to translate them. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telebt-v4.0: Hook up RN4678 moduleKeith Packard2017-05-13
| | | | | | | We've switched from the BM70 to this module which offers a virtual serial channel over both BT and BTLE. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add RN4678 Bluetooth module driverKeith Packard2017-05-13
| | | | | | | | | This works much like the old BTM module, but supports both bluetooth and bluetooth LE. I've poked at it briefly over BTLE to see that it appears to have the right name, but haven't attempted to communicate over BTLE yet. Signed-off-by: Keith Packard <keithp@keithp.com>