summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | | altos/telelco: Handle case where no boxes are presentKeith Packard2012-10-14
| | | | | | | | | | | | | | | | | | Don't infinite loop looking for something which isn't there Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos/telelco: Only present valid padsKeith Packard2012-10-14
| | | | | | | | | | | | | | | | | | Limit pad display to valid pads, skipping missing ones. Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos/telefire: Report valid channels instead of valid pinsKeith Packard2012-10-14
| | | | | | | | | | | | | | | | | | | | | Now that pins don't match channels 1:1, make sure that the report back to the LCO names the channels instead of the pin numbers. Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos/test: Display MPU6000 values in ao_flight_test_mm outputKeith Packard2012-10-13
| | | | | | | | | | | | | | | | | | No computation yet, just making the values visible in the output Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Define full-scale gyro and accel values for MPU6000Keith Packard2012-10-13
| | | | | | | | | | | | | | | | | | This lets other code convert MPU6000 readings into canonical units Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: When missing MMA655x, create fake Z accel valueKeith Packard2012-10-13
| | | | | | | | | | | | | | | | | | | | | This avoids overwriting the MPU6000 y acceleration value so that other computations using that value can work unmodified. Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos/test: Add ao_flight_test_mmKeith Packard2012-10-13
| | | | | | | | | | | | | | | | | | This reads mega metrum eeprom files and runs the flight code over it Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Eliminate implicit 1 byte offset in uint16/int16 functionsKeith Packard2012-10-13
| | | | | | | | | | | | | | | | | | Make callers explicitly compute the full offset Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Split out ms5607 conversion code for use in ao_flight_testKeith Packard2012-10-13
| | | | | | | | | | | | | | | | | | Makes the conversion code available even where the driver isn't needed Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: struct ao_log_mega doesn't have a ground temp valueKeith Packard2012-10-13
| | | | | | | | | | | | | | | | | | | | | There's no averaged ground temperature recorded in the flight system to save there, so just remove the field Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Document a few member offsets in struct ao_log_recordKeith Packard2012-10-13
| | | | | | | | | | | | | | | | | | Incomplete, but useful even so 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 (untested) driver for AT24C i2c flash partsKeith 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>
* | | altos: Allow products to define which LED to panic withKeith Packard2012-10-12
| | | | | | | | | | | | | | | | | | Continue to use AO_LED_RED by default. Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Megametrum uses altitude-pa.h, not altitude.hKeith Packard2012-10-12
| | | | | | | | | | | | | | | | | | | | | Make sure megametrum gets rebuilt as needed when the various altitude-pa related files change Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Add attiny architecture filesKeith Packard2012-10-12
| | | | | | | | | | | | | | | | | | | | | These are designed to work with the ATtiny85 processor, but can presuambly be easily adapted to others in that series Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Include struct ao_data declaration only when usedKeith Packard2012-10-12
| | | | | | | | | | | | | | | | | | Leave it out for products that don't have a ring of sensor data Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Clean up types in Pa conversion testing code. Only test to 40kmKeith Packard2012-10-12
| | | | | | | | | | | | | | | | | | | | | | | | A couple of missing 'int' declarations. Only test to 40km as above that there aren't enough data points to do anything reasonable Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Elide ao_altitude_to_pa in flight firmwareKeith Packard2012-10-12
| | | | | | | | | | | | | | | | | | | | | Only the conversion testing code needs to get back from altitude to pressure, so don't include that code in other environments. Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Parameterize altitude table access and initializationKeith Packard2012-10-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows projects to store the altitude data in different representations or with different access modes. By default, altitude data is stored in meters, but the initializers include decimeter values so those can be used instead if desired. Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Use alt_t for all Pascal-based altitude dataKeith Packard2012-10-12
| | | | | | | | | | | | | | | | | | | | | This allows alt_t to be overridden for systems using the MS5607/MS5611 sensors Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Allow for other mutex implementationsKeith Packard2012-10-12
| | | | | | | | | | | | | | | | | | Allow projects to replace ao_mutex_get and ao_mutex_put with macros Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Allow projects to specify clock at other than 100HzKeith Packard2012-10-12
| | | | | | | | | | | | | | | | | | Leave the default at 100Hz, but allow it to be overridden Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Prepare ms5607 driver for use in non-tasking productsKeith Packard2012-10-12
| | | | | | | | | | | | | | | | | | Micropeak doesn't have tasking, prepare the ms5607 driver for that Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Split task definitions out to ao_task.hKeith Packard2012-10-12
| | | | | | | | | | | | | | | | | | And only include them if using tasks Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos/telefire: Add siren/strobe supportKeith Packard2012-10-10
| | | | | | | | | | | | | | | | | | | | | This also involved hacking up the code to allow for non-zero offsets for the pad firing and continuity pins. Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos: Compute desired frequency when upgrading from pre-1.1Keith Packard2012-10-08
| | | | | | | | | | | | | | | | | | | | | Instead of just smashing the frequency to 434.550, compute the frequency from the old radio channel value Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos/telefire: Make sure armed alarm goes off on timeKeith Packard2012-10-06
| |/ |/| | | | | | | | | | | | | | | | | Instead of turning the alarm off when a packet is received after the deadline, just do it in the thread which is awake all of the time. This prevents the alarm from sticking on when the LCO box is turned off while the arming key is on. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Re-enable the ms5607 and mma655x acquisition threadsKeith Packard2012-10-03
|/ | | | | | These were disabled to help with testing in Argonia Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Provide MS5611 configuration option, HAS_MS5611Keith Packard2012-10-03
| | | | | | | | | MS5611 and MS5607 use slightly different conversion functions. Alas, there doesn't appear to be a way to tell them apart in software. This patch adds the necessary conversion changes and makes them depend on a compile-time configuration option. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shrink Pa to altitude tableKeith Packard2012-09-21
| | | | | | | This improves the computation of the table enough that errors from a 470 entry table are almost all < 0.5m. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix telemini sdcdb init fileKeith Packard2012-09-16
| | | | | | Set the driver source path for the debugger Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Need to use 16-bit counts for ao_xmem functionsKeith Packard2012-09-14
| | | | | | | | | Trying to use 8-bit counts is a nice optimization which fails when the count is larger than 255, as is the case with clearing the flash block in the AT45 driver. This bug resulted in the inability to erase flights on TeleMetrum v1.0 boards. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco: Search for available firing nodes at boot timeKeith Packard2012-09-09
| | | | | | Query for available firing nodes, limiting device selections to those found. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telefire: Add steady warble when the LCO arm switch is onKeith Packard2012-09-09
| | | | | | And make debugging a run-time option too. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Fix basic time interval to 10ms -- was 10.1msKeith Packard2012-09-09
| | | | | | Counting from 0 to 100 takes 10.1ms, so count to 99 instead. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/spiradio: Label LEDs so that the radio code can use themKeith Packard2012-09-09
| | | | | | Mark which should be on for TX and which for RX Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Try to get remote cmac time closer to realityKeith Packard2012-09-09
| | | | | | | | Record the time after the packet was sent, but before the return packet arrives to try and more closely approximate the time the packet arrived at the other end. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up flight data definitionsKeith Packard2012-09-09
| | | | | | | These just shuffle the various definitions of data macros around to make the include files more sensible looking. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: include ao_arch_funcs.h at the very end of ao.hKeith Packard2012-09-09
| | | | | | Move it below the definition of the ms5607 init function Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow products without MS5607Keith Packard2012-09-09
| | | | | | | The define for a missing MS5607 was wrong, so anything using the fancy multi-sensor data code would break without an MS5607 in place. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix radio slave to run lights in the normal wayKeith Packard2012-09-06
| | | | | | These were left in a debug mode, toggling instead of flashing. Signed-off-by: Keith Packard <keithp@keithp.com>
* Revert "first work on PWM input to TeleScience, 'p' command displays timer 1"Keith Packard2012-09-01
| | | | | | PWM bits not suitable for master This reverts commit e93c6bcc799d76d4ff425815e2601a25e6796229.
* Revert "Timer 3 working with slower clock and all 16 bits."Keith Packard2012-09-01
| | | | | | PWM bits not suitable for master This reverts commit 49b1ff4c614d24977b33cd17b583acc87acff476.
* Revert "ICP3 working"Keith Packard2012-09-01
| | | | | | PWM bits not suitable for master This reverts commit 75d6aa6f798606f1a6c5a46542065dda81e63b2a.
* Revert "telescience: correctly calculating rate values with higher resolution"Keith Packard2012-09-01
| | | | | | PWM bits not suitable for master This reverts commit ada6f2dfc045e77cb9499f20cdec1b4a54ef0db1.
* altos: Get mma655x driver limping alongKeith Packard2012-08-31
| | | | | | This appears to drive the chip correctly to see values from the accelerometer. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix mma665x pin assigment for mma655xKeith Packard2012-08-31
| | | | | | It's on PE13-PE15, not PA5-PA7 Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add custom panic noise for self-test failuresKeith Packard2012-08-31
| | | | | | Make it easier to tell which component is failing self test Signed-off-by: Keith Packard <keithp@keithp.com>