summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* move from Debian packaged sdcc to new cc1111 package forked from 2.9.0-5megametrum-testBdale Garbee2012-06-10
|
* 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>
* altosui: Quick hacks to download megametrum data and convert to CSVKeith Packard2012-06-01
| | | | | | | Very little useful data crunching is done, but at least we can save and convert files 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>
* Bump to 1.0.9.51.0.9.5Keith Packard2012-05-28
| | | | 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>
* Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altosBdale Garbee2012-05-16
|\
| * altosui: Try to make telem tick counts match eepromKeith Packard2012-05-07
| | | | | | | | | | | | | | | | telem files can have an extra wrap or two of tick count if they start recording a long time before the flight. Account for this so that the CSV file output from each have matching tick values. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosui: Output recorded clock tick in CSV filesKeith Packard2012-05-07
| | | | | | | | | | | | This allows eeprom and telem files to be correlated accurately 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>
| * altos: Get mpu6000 workingKeith Packard2012-05-07
| | | | | | | | | | | | | | This initializes the device appropraitely, and provides a command to dump the current values in converted form. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: stm: pass DMA buffer index to DMA completion callbackKeith Packard2012-05-07
| | | | | | | | | | | | This lets the user know which DMA has finished. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: stm: delay during USB config with pull-up offKeith Packard2012-05-07
| | | | | | | | | | | | | | This makes sure that a reboot will reliably cause the device to disconnect from the USB bus. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: stm: share i2c_stop code between send and recvKeith Packard2012-05-07
| | | | | | | | | | | | | | This waits for the stop signal to appear on the bus, necessary before starting another transaction. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: stm i2c DMA for large recv appears to workKeith Packard2012-05-06
| | | | | | | | | | | | | | | | Transaction appears to be clean on the i2c bus now; correct number of bytes received, and the nack and stop at the right time. This tests > 2 length reads; should try that too. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: megametrum needs ao_mpu6000.hKeith Packard2012-05-06
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Switch megametrum compile to -OsKeith Packard2012-05-06
| | | | | | | | | | | | Looks like gcc has compiler bugs with -O0 Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: STM i2c work.Keith Packard2012-05-06
| | | | | | | | | | | | | | Start now driven by interrupts Send now done with DMA and interrupts Signed-off-by: Keith Packard <keithp@keithp.com>