summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* altos/pong: Don't let the ball skip over the paddlepongKeith Packard2017-11-02
| | | | | | Check for intersect at each X step. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/pong: Speed up ball as the volley continuesKeith Packard2017-11-02
| | | | | | Makes the game a bit more challenging Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/pong: Add initial pong implementationKeith Packard2017-11-02
| | | | | | This runs on the STM32L discover board. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Add AO_EXTI_MODE_PULL_NONEKeith Packard2017-11-02
| | | | | | This is clearer than using '0'. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: whitespace cleanup in ao_adc_stm.cKeith Packard2017-11-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add vblank signal to vga driverKeith Packard2017-11-02
| | | | | | Allow applications to sync with vblank. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Share common logging code. Deal with corrupt initial flight recordsKeith Packard2017-10-28
| | | | | | | | | | | Move common logging APIs from per-format files into ao_log.c. Then, change that code to check the first log record in a slot (containing the flight number) to see if it's invalid and deal with it. That involves not re-using that slot, and allowing it to be erased. Corrupted log blocks are reported with a negative flight number. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Define AO_LOG_FORMAT in */ao_pins.h. Use in ao_cmd.cKeith Packard2017-10-22
| | | | | | | Instead of having a global variable define the log format, use a macro instead to save data space. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Remove cross-block storage I/O on cc1111Keith Packard2017-10-22
| | | | | | | | We don't ever need to be able to do storage read/write across chunks of flash on the old cc1111 products, so remove the loops that support it to save space. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Move temp GPS API from cal_data to data_listenerKeith Packard2017-10-22
| | | | | | | | This makes the API more consistent, and means that the listener is responsible for mangaing the temp gps state. In particular, the AltosDataListener set_gps API now calls the cal_data function. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Save separate config for local and remote. Use in idleKeith Packard2017-10-14
| | | | | | | | | | | When using the remote link, there are two separate configuration data blocks, that for the local device and for remote. Make the link report both versions, depending on whether it is in remote mode or not. Request config data in remote mode when running idle monitoring so that the presented data is for the remote device, not the local one. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Report un-adjusted ground accel in idle IMU monitorKeith Packard2017-10-14
| | | | | | | The ground accel is the basis of the accel adjustment, so it needs to be delivered in un-adjusted form. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add MPU9250 support to self test and dataKeith Packard2017-10-12
| | | | | | The remaining hooks to make the MPU9250 work in flight. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix time series filter window computationKeith Packard2017-10-12
| | | | | | Small floating point rounding errors could lead to NaNs. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Don't crash if there's no GPS coord to write KMLKeith Packard2017-10-12
| | | | | | Just check for null before writing as a precaution. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Allow gps time later than requested if it's firstKeith Packard2017-10-12
| | | | | | | | | | When generating a KML file, we want to position markers near the start of the flight section. This is done by looking for a GPS coordinate 'before' the starting point of the flight, which doesn't work well when the first GPS coordinate is later than that. Pick the first point after the chosen time if there isn't an earlier one. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add MPU9250 driver (accel/gyro only for now)Keith Packard2017-10-12
| | | | | | | This is almost an exact copy of the MPU6000 driver, just a few minor register changes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Stop storing pyro fired status in config blockKeith Packard2017-10-08
| | | | | | | | | | | We already have the fired status saved in the ao_pyro_fired variable, so just use that to detect whether a channel has already been fired. Fixes possible cases where the pyro config data gets written back to eeprom with the fired bit set, which then inhibits the channel during flight. Signed-off-by: Keith Packard <keithp@keithp.com>
* Set version to 1.8.2.1Keith Packard2017-10-05
| | | | | | Testing KML export changes at TRA Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Missing file for filter additions.Keith Packard2017-10-04
| | | | 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: Adapt KML output to make TRA record people happierKeith Packard2017-10-04
| | | | | | | | Provide two paths, one using GPS data the other baro. Replace separate path segments for each state with markers so that the path is a single unit, able to be displayed in the elevation profile widget. 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>
* altoslib: Allow early bail-out on bad telemetry CRCKeith Packard2017-10-02
| | | | | | | Check the CRC status in the packet before creating a new telemetry object. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow pyro config name to end with newline, not just space/tabKeith Packard2017-10-02
| | | | | | | | A pyro config like 'Descending' has no value associated. When it is at the end of the line, allow a newline to terminate the name instead of just a space. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib,altosuilib,altosui: log_format/device_type TeleGPS selects statelessKeith Packard2017-10-02
| | | | | | | | | When the device being analyzed has no flight state, we want to use the 'stateless' state so that the UI can display reasonable information. This bit was lost in the recent AltosState shuffle and this patch brings it back. 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>
* altoslib: Add tilt and pyro data to CSV exportKeith Packard2017-09-26
| | | | | | | It's now version 6. Also removed duplicate time values and made radio values conditional on having radio data. Signed-off-by: Keith Packard <keithp@keithp.com>
* don't exit on dfu-util errors, it's not reliable about reporting successBdale Garbee2017-09-19
|
* tweak Releasing based on 1.8.2 release experienceBdale Garbee2017-09-18
|
* be more aggressive about removing and ignoring .mdwn filesBdale Garbee2017-09-18
|
* Update release version and dateKeith Packard2017-09-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Update docs for 1.8.2 releaseKeith Packard2017-09-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add short section on accelerometer calibrationKeith Packard2017-09-18
|
* altos/telegps-v2.0: Enable USB connect monitoringKeith Packard2017-09-18
| | | | | | | Disable radios when plugged in to USB to save power and avoid being noisy. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altosBdale Garbee2017-09-18
|\
| * altoslib: Avoid crashing when computing stats for empty flight logsKeith Packard2017-09-18
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * telegps: Fix up TeleGPS UI bits after accel cal changesKeith Packard2017-09-18
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * test/ao_flight_test: Show recorded pyro firingKeith Packard2017-09-18
| | | | | | | | | | | | Can compare with computed values. Signed-off-by: Keith Packard <keithp@keithp.com>
* | production TeleGPS v2.0 use a 16Mhz crystal for the SOCBdale Garbee2017-09-18
|/
* publish support for TeleGPS v2.0Bdale Garbee2017-09-17
|
* deal with cheap BT dongle that shows multiple copies of unit in lescan outputBdale Garbee2017-09-14
|
* 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>
* altos/test: Handle new eeprom file format. Give up on telem files.Keith Packard2017-09-12
| | | | | | | Parse eeprom config using libjson-c, then read the hex values into a giant blob. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix debug printf in ao_pyro for state >=Keith Packard2017-09-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* chaoskey: Wait for input data to stabilize before using itKeith Packard2017-09-12
| | | | | | | The ADC data takes a while to start working after power on; wait for the range of input values to look reasonable before using the data. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Add forward reference from 'idle' description to idle entry steps.Keith Packard2017-09-12
| | | | | | | This provides a reminder that entering idle mode takes specific steps which differ between models. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Handle missing GPS when graphing mega/metrum dataKeith Packard2017-09-12
| | | | | | | These have GPS, but if we never get a valid packet, then there won't be any final position to display. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Remove debug printfs in FC config UIKeith Packard2017-09-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>