summaryrefslogtreecommitdiff
path: root/src/micropeak
Commit message (Collapse)AuthorAge
* Add --with parameters to configure for compiler selectionnew-stateKeith Packard2013-10-08
| | | | | | | | This allows the user to specify which compiler to use for each target CPU. Also checks to make sure the arm compiler supports -m0 and -m3 cpu type flags. The build now actually uses the specified compilers too. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move micropeak sources aroundKeith Packard2013-09-15
| | | | | | | | This sticks the micropeak sources in appropriate directories, rather than in the micropeak product directory so that they can be shared with future micropeak-style products. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Explicitly list the linker script needed for AVR targets.Keith Packard2013-08-25
| | | | | | | Something changed in the binutils-avr package which makes the linker fail to find the script in the default location. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move ao_notask to coreKeith Packard2013-05-07
| | | | | | | The STM flash loader wants to be taskless too, share this very simple implementation of sleep/wakeup. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add nickle micropeak log parsing codeKeith Packard2013-05-07
| | | | | | I think this was just some debugging stuff, but it doesn't seem useless Signed-off-by: Keith Packard <keithp@keithp.com>
* 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: Add load-slow target for MicroPeakKeith Packard2012-12-12
| | | | | | | This sets the programming clock to 1/4 of the 250kHz clock used by the MicroPeak firmware, allowing the device to be reprogrammed. 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: Increase MicroPeak blink times a bitKeith Packard2012-12-11
| | | | | | | make the 0 longer (1 sec now), and make the time between digits longer (also 1 sec now) Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use alt_t value to hold displayed height in micropeakmicropeak-build-2012-12-09Keith Packard2012-12-09
| | | | | | | Heights are 32 bits (to get .1 meter resolution) in micropeak; make sure we have enough bits while blinking out the computed value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make sure pa to altitude conversion is done with 32 bitsKeith Packard2012-12-09
| | | | | | | We need 32 bits to hold intermediate values, even if the final altitude is reported in only 16 bits. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Store altitude in 32-bits for MicroPeakKeith Packard2012-12-09
| | | | | | Needs all 32 bits to store .1 meter resolution Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Slow down micropeak report timingKeith Packard2012-11-18
| | | | | | This makes reading the LED a lot easier. 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: Run MS5607 at max resolution for micropeakKeith Packard2012-10-30
| | | | | | We've got lots of time, so get the highest resolution baro data available. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak: Clock micropeak at 250kHz to save powerKeith Packard2012-10-30
| | | | | | | | | | This reduces average current consumption from 2mA to .4mA. This makes the battery last longer, but also gets the current under something that the typical CR1025 battery can support. Would be nice to reduce current even further; cheap CR1025 batteries still seem to fade a bit at this current level. 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 .gitignore for micropeakKeith Packard2012-10-12
| | | | 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>