summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* altos: use 'b' command for radio beepKeith Packard2012-06-15
| | | | | | 'B' is used by the baro data dumper. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix RDF mode data rate and PKT_CFG0 valueKeith Packard2012-06-15
| | | | | | | Changes tone to the desired 1kHz frequency and ensures the PKT_CFG0 has the right value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Actually write cc1120 register valuesKeith Packard2012-06-15
| | | | | | Helps to not use 'read' mode when writing. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Configure cc1120 frequencyKeith Packard2012-06-15
| | | | | | | Set default conversion value, and pull the selected frequency calibration data out of the config block. Signed-off-by: Keith Packard <keithp@keithp.com>
* Temporarily disable packet and telem on MMKeith Packard2012-06-15
| | | | | | While work on the radio code progresses Signed-off-by: Keith Packard <keithp@keithp.com>
* Allow product to override maximum number of command lists (NUM_CMDS)Keith Packard2012-06-15
| | | | | | Just in case some product wants to save memory, or have more. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make cc1111 products all depend on ao_arch.h and ao_arch_func.hKeith Packard2012-06-04
| | | | | | Ensures that files get recompiled as needed Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Other half of the ms5607 prom reporting patchKeith Packard2012-06-04
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: typo in ao_monitor prevented ground station from including codeKeith Packard2012-06-04
| | | | | | | This created ground station software that couldn't actually receive and report telemetry packets. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make 'v' command dump pressure sensor ROM valuesKeith Packard2012-06-04
| | | | | | Avoids needing a new command Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: fix test builds of non-accel flight codeKeith Packard2012-06-04
| | | | | | | Remove references to accel variables when building baro-only flight test code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Legacy telemetry needs original ADC recordKeith Packard2012-06-04
| | | | | | | | The legacy telemetry packets included the raw ADC structure directly, so make sure that doesn't change further, allowing teledongle firmware to remain compatible with old TM firmware. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Remove unused AES code from teledongle and tidongleKeith Packard2012-06-04
| | | | | | Leave this out as neither of these products need it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Remove accel_ref from pre v1.1 TM firmwareKeith Packard2012-06-04
| | | | | | | V1.0 needs RAM space for flash buffer, leaving too little room for this extra data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Intgrate hmc5883 sensor into adc ringKeith Packard2012-06-02
| | | | | | | Creates a task to poll the mag sensor and place the data into the sensor data ring. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Get HMC5883 driver limping alongKeith Packard2012-06-02
| | | | | | Not pushing data into the ring yet, but the chip appears to work now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Reset i2c controller at boot timeKeith Packard2012-06-02
| | | | | | In case it's wedged. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix broken EXTI edge mode selections. Clear pending exti on enableKeith Packard2012-06-02
| | | | | | | | | Make sure the edge mode registers are set according to the requested mode. Clear any pending interrupt when enabling to avoid spurious isr call Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Route correct GPIO line to interrupt controllerKeith Packard2012-06-02
| | | | | | | Which GPIO a particular pin interrupt comes from is selected by the SYSCFG EXTICR registers; set these when an exti interrupt is configured. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Enable some debugging during flight mode on MMKeith Packard2012-06-02
| | | | | | | | Until we've got the radio working, there's no way to see inside the MM state without using USB. Add a diagnostic command to dump out the internal flight state variables. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add support for MegaAccel daughter card.Keith Packard2012-06-01
| | | | | | | | | Switches all acceleration computation to using the MegaAccel accelerometer to ensure support for high-g flights. MPU6000 values continue to be logged as normal Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Timers clock base depends on perhipheral bus prescalers tooKeith Packard2012-06-01
| | | | | | | | For some weird reason, a non-unity perhipheral bus clock scaler affects the base of the various timers; this left the 100Hz tick running at 200Hz. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: megametrum has loggingKeith Packard2012-06-01
| | | | | | | This makes sure the various other subsystems know about it, like the 'v' command. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: add high-z accel and mag sensor to megametrum loggingKeith Packard2012-06-01
| | | | | | These nicely fill the 32-byte sensor log record Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Mark full and mega logging correctly in 'v' commandKeith Packard2012-06-01
| | | | | | Make sure megametrum reports 'log format 5'. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clear stm i2c transfer timeout alarmKeith Packard2012-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Remove debug printf from accel auto-calKeith Packard2012-05-28
| | | | | | Otherwise, this goes way too slow Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up ADC selection for cc1111Keith Packard2012-05-28
| | | | | | Depend directly on product defines instead of trying to guess Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: All cc1111 products have a radioKeith Packard2012-05-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shrink telemetry generation codeKeith Packard2012-05-28
| | | | | | otherwise TM doesn't build anymore Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Try to get hmc5883 workingKeith Packard2012-05-28
| | | | | | No joy yet Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make teleterra v0.2 compile with new ao_data structKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make telepyro-v0.1 build with new ao_data structKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make telescience-v0.1 build with new ao_data structKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make telenano build with new ao_data structureKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make stm-demo compile with new ao_data structureKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make telemini-v1.0 compile with new ao_data structureKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make telemetrum-v1.0 build with new ao_data structureKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make telemetrum-v1.1 compile with new ao_data structureKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ignore pa to altitude conversion fileKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Split out mm-specific versions of sampling codeKeith Packard2012-05-27
| | | | | | Avoid breaking telemetrum (too much) by splitting this stuff apart. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Don't start ADC ring until the other sensors have a valid valueKeith Packard2012-05-27
| | | | | | Yes, this is still an ugly kludge, but it's easy. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Data packet tick count does not live in adc structureKeith Packard2012-05-27
| | | | | | It was moved to the global structure. Having two is confusing. Signed-off-by: Keith Packard <keithp@keithp.com>
* Get megametrum ready to at least log flight dataKeith Packard2012-05-25
| | | | | | Doesn't track flight state changes correctly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Poll mpu6000 values every tick and stash them locally.Keith Packard2012-05-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Finish ms5607 supportKeith Packard2012-05-18
| | | | | | | | | | This has the MS5607 polling once each tick for pressure and temperature and then saving that in a global variable. The command UI provides for dumping the prom data so that an eeprom file can have raw sensor data along with the conversion factors necessary to compute useful values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add conversion between Pa and metersKeith Packard2012-05-18
| | | | | | To be used with the MS5607 which generates data in calibrated units. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Check MS5607 CRC. Clean up MS5607 APIKeith Packard2012-05-18
| | | | | | It's not ready for flight yet, but at least it's sensible now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Conditional byte swapping in mpu6000 driverKeith Packard2012-05-18
| | | | | | Only needed on LSB machines. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Hacking at cc1120 driverKeith Packard2012-05-07
| | | | | | Still doesn't work, but this adds a ton more register definitions Signed-off-by: Keith Packard <keithp@keithp.com>