summaryrefslogtreecommitdiff
path: root/src/micropeak/ao_micropeak.c
Commit message (Collapse)AuthorAge
* altos: Add Kalman filter to MicroPeakKeith Packard2013-01-16
| | | | | | | | This filters altitudes more accurately and also allows tracking of acceleration, which is used to discard height data generated by ejection charge noise Signed-off-by: Keith Packard <keithp@keithp.com>
* micropeak: Record samples before boost detectKeith Packard2013-01-12
| | | | | | | | | This saves a ring of 16 samples while waiting for boost, and then goes back through those looking for the first sample higher than the ground and writes the remaining ones to the log so that we get a more complete log of the flight Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add distinct LED pattern before writing log dataKeith Packard2012-12-18
| | | | | | Otherwise, the whole log looks like a an extra altitude digit. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make micropeak 'serial' interface workKeith Packard2012-12-17
| | | | | | | | | | | I prototyped the mpserial interface on a breadboard and tuned the circuit to register the LED correctly. Then adjusted the serial code to send bits at the right speed and format. The logging contents are now in hexdecimal with a CCITT CRC-16 computed to verify correct reception. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Log baro readings for MicroPeakKeith Packard2012-12-14
| | | | | | | | This logs barometric data every 192ms (more or less) to the 504 remaining bytes of internal EEPROM storage in the ATtiny85. This provides 48.192 seconds of logging. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Log in-flight data for MicroPeakKeith Packard2012-12-12
| | | | | | | | This logs the low 16 bits of the pressure value to the remaining on-chip eeprom. It can be read out with a standard AVR programming dongle. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Tim Van Milligan suggestion for µP -- delay before showing last flightKeith Packard2012-12-11
| | | | | | This gives the user time to move their finger out of the way of the LED. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: micropeak LED is orange now, not blueKeith Packard2012-11-18
| | | | | | Change the names around to match Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak: Set boost detect to 10m. Add 30s boost delay.Keith Packard2012-10-29
| | | | | | | | | | | Wait for 30 seconds before even starting look for boost. This provides an opportunity to close up the airframe, potentially causing pressure gradients seen by the baro sensor. Also, require a 10m vertical motion before triggering boost. This should limit accidental boost detect while capturing any actual flights. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak: Switch to MS5607 sensor. Require 4m for boost. Elide dead codeKeith Packard2012-10-29
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add initial micropeak implementationKeith Packard2012-10-12
Blinks out max height in decimeters, stores previous flight data to internal eeprom. Signed-off-by: Keith Packard <keithp@keithp.com>