summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Merge branch 'master' into pwmin-new1.1.9.1pwmin-newKeith Packard2012-10-18
|\
| * altos/megametrum: Switch back to using the MS5607Keith Packard2012-10-18
| | | | | | | | | | | | We're planning to ship the MS5607 Signed-off-by: Keith Packard <keithp@keithp.com>
| * Merge branch 'master' into mm-ms5611Keith Packard2012-10-18
| |\ | | | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Fix up ms5607 and mma655x commands to work againKeith Packard2012-10-08
| | | | | | | | | | | | | | | | | | These just display the most recently fetched values Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Go back to recording sensor data in globalsmm-ms5611Keith Packard2012-10-08
| | | | | | | | | | | | | | | | | | | | | | | | Instead of trying to get things into the ring from a variety of functions, go back to the simpler method of storing them in globals and having the ADC code just pluck out the most recent values. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos/megametrum: Try running accel and baro in parallel againKeith Packard2012-10-07
| | | | | | | | | | | | | | | | | | | | | Now that the baro sensor appears to be working, try running conversions in parallel to see if that makes the accel cal happy Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos/stm: Set SPI clock high for disabled SPI bussesKeith Packard2012-10-06
| | | | | | | | | | | | | | | | | | | | | This should avoid an accidental low->high transition when switching between multiple SPI busses. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos/stm: Clean up SPI pin configuration codeKeith Packard2012-10-06
| | | | | | | | | | | | | | | | | | | | | Make sure none of the pin configurations are being used at startup time. Split out the pin configuration into separate functions. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos/drivers: Use data ring values for MS5607 presentationKeith Packard2012-10-06
| | | | | | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos/megametrum: Make MS5607 driver hold SPI bus for whole operationKeith Packard2012-10-06
| | | | | | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos/megametrum: Use mma655x for acceleration measurements nowKeith Packard2012-10-06
| | | | | | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * | Merge branch 'master' into mm-ms5611Keith Packard2012-10-03
| |\ \
| * | | altos/megametrum: Commit for boards with MS5611 baro sensorKeith Packard2012-10-03
| | | | | | | | | | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | | | altos: Build telescience-pwm product when possibleKeith Packard2012-10-16
| | | | | | | | | | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | | | altos: Add telescience-pwm productKeith Packard2012-10-16
| | | | | | | | | | | | | | | | | | | | | | | | Split out special PWM-sampling telescience product Signed-off-by: Keith Packard <keithp@keithp.com>
* | | | altos: Only enable PWM on telescience_pwm productKeith Packard2012-10-16
| | | | | | | | | | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | | | telescience: correctly calculating rate values with higher resolutionRobert Garbee2012-10-16
| | | |
* | | | ICP3 workingRobert Garbee2012-10-16
| | | |
* | | | Timer 3 working with slower clock and all 16 bits.Robert Garbee2012-10-16
| | | |
* | | | first work on PWM input to TeleScience, 'p' command displays timer 1Robert Garbee2012-10-16
| | | |
* | | | telescience: steal last adc channel for icp3 most recent valueRobert Garbee2012-10-16
| |_|/ |/| | | | | | | | | | | | | | Make the ICP3 rpm counter use in ao_adc_avr.c optional Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos/avr: Use ISR_BLOCK to disable interrupts during slave ISRKeith Packard2012-10-16
| | | | | | | | | | | | | | | | | | This avoids enabling and then immediatly disabling them Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos/telelco: Make the RSSI led turn red when no packet is receivedKeith Packard2012-10-15
| | | | | | | | | | | | | | | | | | | | | This involved splitting out the notion of ever having received an answer and having received an answer from the last query. Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos/telelco: 10ms is not enough time to get a packet backKeith Packard2012-10-15
| | | | | | | | | | | | | | | | | | Not reliable, so bump to 20ms Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos/telelco: Only display every 10th box number during scanKeith Packard2012-10-15
| | | | | | | | | | | | | | | | | | This reduces the scan time to about 4 seconds, which seems tolerable Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos/telelco: Crank up SPI speed to cc1111Keith Packard2012-10-15
| | | | | | | | | | | | | | | | | | | | | | | | The cc1111 can handle up to 3MHz, so use 2MHz. Also, crank down the packet wait time to 10ms, which should be plenty long for the remote box to receive and return a packet. Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos/stm: Declare all SPI bus speedsKeith Packard2012-10-15
| | | | | | | | | | | | | | | | | | Just list them all so users can pick what they like Signed-off-by: Keith Packard <keithp@keithp.com>
* | | altos/telelco: Actually set pad when it changesKeith Packard2012-10-14
| | | | | | | | | | | | | | | | | | Oops. Lost the actual assignment to the current pad Signed-off-by: Keith Packard <keithp@keithp.com>
* | | 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>