summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* telefire-v0.2: Disable rotary address switchestelefire-4-no-addrKeith Packard2017-08-11
| | | | | | These are failing in the field, so stop trying to use them. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup: Allow dfu_util to "fail" while flashing chaoskeyKeith Packard2017-08-11
| | | | | | | Sometimes it isn't happy about the exit status, but if the device comes up and works OK, we don't care. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Set time in state for KML output correctlyKeith Packard2017-08-11
| | | | | | Use new computed state_time value. Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: Test both bluetooth and USB APIs with cjnitestKeith Packard2017-07-23
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/test: Fix AES key format in test codeKeith Packard2017-07-23
| | | | | | Use temp variable instead of stepping on the AES name. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/test: Fix printf format for int64 arithmetic testKeith Packard2017-07-23
| | | | | | Use 'long long' and %lld for 64-bit values when printing. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Rename AltosConfig -> AltosConfigFCKeith Packard2017-07-23
| | | | | | Now the class name says that this configures the flight computer. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Adapt to flight stats time value changesKeith Packard2017-07-23
| | | | | | | | | There aren't state time values anymore as those don't work when you have multiple motors. Instead, 'boost_time' is when the rocket left the pad and 'landed_time' is when it touched down. Use these new values in the --summary output. Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: Add btle test programKeith Packard2017-07-21
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/test: Add EasyMini test modeKeith Packard2017-07-21
| | | | | | Use baro-only mode, parse easymini logs. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: fix adjustment of landed timeKeith Packard2017-07-21
| | | | | | Push landed time out if we computed silliness. Signed-off-by: Keith Packard <keithp@keithp.com>
* Set version to 1.7.1 for TeleBT firmware buildKeith Packard2017-07-21
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telebt-v4.0: Use HW flow control to BT moduletime-seriesKeith Packard2017-06-27
| | | | | | Now that the stmf0 HW flow control works... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Initialize UART RTS/CTS before turning it onKeith Packard2017-06-27
| | | | | | If you try this after the UART is running, it won't work. 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: Fix comments in AltosQuaternion and AltosRotationKeith Packard2017-06-27
| | | | | | Especially the nested comment which borked the compile Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: cal_data is no longer public from AltosStateKeith Packard2017-06-27
| | | | | | Use cal_data() method instead. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Clean up quaternion and rotation interfacesKeith Packard2017-06-22
| | | | | | | | Export euler to quaternion (instead of half_euler). Provide angles to rotate rather than rates and time. Add comments to quaternion and rotation code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/rn4678: Add BLE supportKeith Packard2017-06-20
| | | | | | This just means ignoring the BLE connect status message. 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>
* altoslib: Rename AltosEepromNew to AltosEepromKeith Packard2017-06-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove old AltosEeprom.java codeKeith Packard2017-06-13
| | | | | | No longer in use Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telebt-4.0: Add dependency on RN4678 headerKeith Packard2017-06-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add timeout to RN4678 status message codeKeith Packard2017-06-13
| | | | | | | | If we see the start of an RN4678 status message, but then output pauses, assume that this isn't the start of a status message and flush the pending data. 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>
* altoslib: Set time for TeleMini v1.0 eeprom analysingKeith Packard2017-06-12
| | | | | | | Need to take the computed tick time and tell the listener what time that cooresponds to. 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: Initialize new imu/mag values. Remove stale imu/mag objects.Keith Packard2017-06-11
| | | | | | | AltosState no longer has imu and mag objects, instead it just holds the values now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Display current altitude in monitor idle Pad tabKeith Packard2017-06-11
| | | | | | | This was attempting to use 'pad' values even though monitor idle doesn't have them. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove unused 'ground_rotation' from AltosStateKeith Packard2017-06-11
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Flush igniter fire commandKeith Packard2017-06-11
| | | | | | This makes the igniter fire without a multi-second delay. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Hook up idle monitoring data againKeith Packard2017-06-11
| | | | | | | The API for idle monitoring changed, but these modules hadn't been fixed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix labels in AltosIMU to match source dataKeith Packard2017-06-11
| | | | | | | IMU bits arrive with X/Y/Z labels and are converted to the correct axes as they leave this object. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Keep time series in AltosFlightSeries array sortedKeith Packard2017-06-11
| | | | | | This makes using the graph way easier. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Handle EasyMini v2.0 ADC valuesKeith Packard2017-06-11
| | | | | | Different from EasyMini v1.0 Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Create separate log format for EasyMini v2.0Keith Packard2017-06-11
| | | | | | | The ADC in the STM32F0 is different than the LPC, with a range of 0-4095 instead of 0-32767. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Missing config values now AltosLib.MISSING, not zero or negativeKeith Packard2017-06-11
| | | | | | Also fix AltosConfigData.java Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Adapt to Mag sensor value ordering changesKeith Packard2017-06-11
| | | | | | | | | The HMC5883 sensor data is ordered x, z, y. Relabel everything to match that to preserve compatibility with existing firmware. With the data correctly ordered, fix the labling of the axes along, across and through. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: HMC5883 output order is X Z YKeith Packard2017-06-11
| | | | | | | | | | Re-label everything to have the correct names. This doesn't actually change the code at all, so the eeprom and telemetry is all compatible. Matching changes on the host side will be required to actually process the data correctly, of course. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Update sensor data atomicallyKeith Packard2017-06-11
| | | | | | | | | | | Read data into a temp variable, block interrupts, then update the published value. The bug is easy to see with the HMC5883 which has to byte-swap the output of the chip, and hence can occasionally get caught with the wrong byte order data. 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: Compute orientation from eeprom data filesKeith Packard2017-06-08
| | | | | | This was lost in the AltosFlightSeries transformation. 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>
* altoslib: Check for valid pad alt before computing GPS height seriesKeith Packard2017-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add status back to AltosFlightSeries for CSV exportKeith Packard2017-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Don't record radio status values in flight seriesKeith Packard2017-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>