summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* altos/test: Add fake flight creation toolfake-flightKeith Packard2017-09-18
| | | | | | This reads eeprom data and generates a fake flight record Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemega-v1.0: Add fakeflight supportKeith Packard2017-09-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Flush pyro updates during fake flightKeith Packard2017-09-18
| | | | | | Let them appear at the right time. 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>
* publish support for TeleGPS v2.0Bdale Garbee2017-09-17
|
* 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>
* altos: Don't compute filtered average of height error when HAS_ACCELKeith Packard2017-08-28
| | | | | | | | We only use this for baro-only devices to avoid firing drogue charges at mach transitions; we trust the combination of accel+baro to do the right thing when available. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/test: Fake baro data for flight 12 serial 2093Keith Packard2017-08-27
| | | | | | | | This flight had a baro spike due to an accidental drogue charge firing but is otherwise quite useful when testing for various mach delay effects, so fake out the data during that spike. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/test: Integrate raw accel to provide speed for comparisonKeith Packard2017-08-27
| | | | | | | | This can provide a useful visualization of the 'true' vs 'kalman' speed value, as the kalman is necessarily delayed due to the model assuming constant acceleration. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/test: telemetrum baro data is inverted before being written to eepromKeith Packard2017-08-27
| | | | | | No need for the test code to invert it during replay Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Don't eliminate baro above mach speed, just trust it lessKeith Packard2017-08-27
| | | | | | | | | | | | | | | | | | | | | | | | Instead of completely eliminating the baro sensor above mach speed, just derate it a bit so that the accel will dominate for speed computation and keep the device from false-triggering across mach transitions. When we completely ignored the baro sensor above mach, and the flight spent considerable time in that speed range, then the estimated height could be far from the real value. When the estimated speed dropped back down and the baro values were brought back into the computation, then the resulting rapid shift in estimated speed could trigger accidental apogee detection. By mixing in a bit of baro data even above mach, we keep the estimated height closer to the baro value and prevent this error, at least in flights measured so far. The flight known to have this problem is: 2015-09-26-serial-2093-flight-0012.eeprom Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Eliminate separate height error filter for accelerometer devicesKeith Packard2017-08-27
| | | | | | | We don't use the error value in flight for those models anyways; it's only useful on baro-only hardware. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Perform time comparisons using 16-bit arithmetic to handle wrapKeith Packard2017-08-27
| | | | | | | Subtracting two 16-bit unsigned values to perform time comparisons yields mystic results unless we carefully cast that to int16_t. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge remote-tracking branch 'origin/master'Keith Packard2017-08-11
|\
| * add TeleBT v4.0 to the list of stuff we buildBdale Garbee2017-07-21
| |
| * ignore more build products in telebt-v4.0 treeBdale Garbee2017-07-21
| |
| * Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altosBdale Garbee2017-07-21
| |\
| * | clean up telefireone name referencesBdale Garbee2017-07-21
| | |
* | | 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>
* | altos/test: Add EasyMini test modeKeith Packard2017-07-21
| | | | | | | | | | | | Use baro-only mode, parse easymini logs. 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>
* | 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>
* | 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>
* | 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>
* | 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>
* | 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>
* | 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>
* 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>
* 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>
* telefiretwo: don't try to record pre-burn sensor values in FLIGHT recordBdale Garbee2017-05-11
|
* altos/telemini-v3.0: Use dbg connector pin 5 for force bootloaderKeith Packard2017-05-04
| | | | | | This works way better than attempting to use the beeper pin. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemini-v3.0: Add 'recovery mode' on PA14 (pin 6 on dbg header)Keith Packard2017-05-04
| | | | | | | | Connect this pin to GND (pin 3) and TeleMini will come up with N0CALL at 434.550MHz using the original frequency calibration. Helps recover from accidental mis-configuration. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move 'ao_force_freq' to ao_config.cKeith Packard2017-05-04
| | | | | | Instead of having to add it to each product using this variable. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make CDC ACM 'line coding' publicKeith Packard2017-05-04
| | | | | | This allows other systems to see what baud rate the host has requested. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telebt-v4.0 Set CPU clock to 48Mhz instead of 96MhzBdale Garbee2017-05-03
|
* altos/telegps-v2.0: Disable external serial port to save ROMKeith Packard2017-05-02
| | | | | | We'll have to rewrite some of the serial code to avoid sucking memory here. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Add code to use SoC flash as storageKeith Packard2017-05-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps-v2.0: Reorder initialization sequenceKeith Packard2017-04-30
| | | | | | | | This tries to be a bit more logical about the board initialization sequence, starting with the OS, then the support hardware, internal drivers, external drivers and finally services. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps-v2.0: CC1200 CS is PA1, not PA5.Keith Packard2017-04-30
| | | | | | | Also remove some unneeded config of an additional pin for MCU wakeup, which the CC1120 needs but the CC1200 does not. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps-v2.0: GPS chip is connected to serial 2, not serial 1Keith Packard2017-04-30
| | | | | | Turn on serial 2 and use it for GPS. Signed-off-by: Keith Packard <keithp@keithp.com>