Andrew Tridgell
f0469a21f2
AP_Baro: fixed timestamp on baro for PX4
...
milliseconds not microseconds
2013-01-22 21:22:01 +11:00
Andrew Tridgell
b9b3ef91a1
AP_Baro: added timer to PX4 driver
...
this gives us more samples when main sketch is reading slowly
2013-01-21 18:20:05 +11:00
Andrew Tridgell
6a5421a361
AP_Baro: ask for maximum poll rate for PX4
2013-01-21 08:27:02 +11:00
Andrew Tridgell
74f7b0f218
AP_Baro: added accumulate method to PX4 driver, and fixed scaling
2013-01-20 22:13:21 +11:00
James Bielman
4fa7bb1486
Add AVR compatibility header for missing math.h definitions.
...
- Define float versions of math functions to the double versions
on AVR (eg. #define sinf sin).
- These macros appear to be missing in older versions of avr-libs.
- Include AP_Math.h rather than math.h to get these definitions.
2013-01-16 13:52:17 +11:00
James Bielman
5631f865b2
Update floating point calculations to use floats instead of doubles.
...
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
2013-01-16 13:52:01 +11:00
Andrew Tridgell
2fe4656a50
Merge pull request #4 from GaloisInc/master
...
Thanks Pat!
2013-01-10 17:24:59 -08:00
James Bielman
25d078e2bd
AP_Baro_MS5611: Don't panic if taking semaphore fails during init.
...
- The MPU6000 holds on to the I2C semaphore for quite some time during
init, which caused a panic when the MS5611 is also on I2C.
2013-01-10 14:22:41 -08:00
Andrew Tridgell
2c603a0960
AP_Baro: only build BMP085 driver on APM1
2013-01-10 21:01:07 +11:00
Andrew Tridgell
8cb0ed364a
AP_Baro: read 4 pressure values for every temperature value on BMP085
2013-01-09 23:44:26 +11:00
Andrew Tridgell
1ce1fa3864
AP_Baro: update example to use accumulate()
2013-01-09 23:06:24 +11:00
Andrew Tridgell
8ceabc97f1
AP_Baro: added accumulate() function
...
this allows us to read the BMP085 much faster
2013-01-09 23:05:17 +11:00
Andrew Tridgell
9b972af307
AP_Baro: skip timer if we don't get the SPI semaphore
2013-01-09 20:27:48 +11:00
James Bielman
eca1417858
AP_HAL: Add semaphores to I2C driver.
...
- Guard I2C transactions with this semaphore in the MS5611 and
HMC5843 drivers.
2013-01-04 15:43:43 -08:00
Andrew Tridgell
c15bf95e19
AP_Baro: fixed example build on AVR
2013-01-04 22:45:02 +11:00
Andrew Tridgell
aa64a41512
AP_Baro: removed debug line
2013-01-04 22:26:51 +11:00
Andrew Tridgell
4fe7ad6267
AP_Baro: added averaging to PX4 baro driver
2013-01-04 21:08:20 +11:00
Andrew Tridgell
dbcaa4cf3c
AP_Baro: average over multiple samples in PX4 baro driver
2013-01-04 20:11:30 +11:00
Andrew Tridgell
2ac6541526
AP_Baro: added PX4 barometer driver
2013-01-04 14:58:24 +11:00
James Bielman
d84ba8ef59
Use HAL suspend/resume timer procs rather than atomic.
...
- Preparation for removing begin/end atomic.
2013-01-03 17:33:13 -08:00
Pat Hickey
5d91f342bb
AP_Baro_MS5611: uses new semaphore lib
2013-01-03 13:48:07 -08:00
James Bielman
264db3670e
AP_Baro: Add CONFIG_MS5611_SERIAL option to choose between SPI and I2C.
...
- Update ArduCopter and ArduPlane modules to pass the correct serial
driver to the MS5611 driver.
- Update barometer examples, assuming SPI.
2013-01-03 13:48:06 -08:00
James Bielman
5753ae5692
AP_Baro: Add I2C support to MS5611 driver.
2013-01-03 13:48:06 -08:00
Andrew Tridgell
374af1cd14
build: change from Arduino.mk to apm.mk
2013-01-02 17:29:37 +11:00
Andrew Tridgell
c5ba33d39a
AP_Baro: fixed MS5611 semaphore handling
2012-12-21 19:33:57 +11:00
Andrew Tridgell
3aa39da6cd
AP_Baro: removed some debug code
2012-12-20 14:53:23 +11:00
Andrew Tridgell
a1187519a8
AP_HAL: use AP_HAL_BOARD_DRIVER in remaining test sketches
2012-12-20 14:52:37 +11:00
Andrew Tridgell
c15eb97c8d
AP_Baro: fixed example build
2012-12-20 14:52:36 +11:00
Pat Hickey
eb530b86e8
move Arduino.mk to /mk/Arduino.mk
2012-12-20 14:52:35 +11:00
Pat Hickey
107ab1a694
AP_Baro: translated to SPI transactions
2012-12-20 14:52:32 +11:00
Pat Hickey
d92e8045c1
AP_Baro: uses scheduler panic
2012-12-20 14:52:31 +11:00
Pat Hickey
2c2279722b
AP_Baro_MS5611: use scheduler panic
2012-12-20 14:52:31 +11:00
Andrew Tridgell
7d27e420ae
AP_HAL: remove unnecessary Arduino.h includes
2012-12-20 14:52:30 +11:00
Andrew Tridgell
4a54ffb523
Baro: use local include to reduce boilerplate
2012-12-20 14:52:30 +11:00
Andrew Tridgell
dbd9814327
AP_Baro: get rid of apm2_hardware parameter in init
2012-12-20 14:51:38 +11:00
Andrew Tridgell
cafeaf91d6
AP_Baro: updates for new AP_Param API
2012-12-20 14:51:38 +11:00
Pat Hickey
475da4eca4
CONFIG_HAL_BOARD - test sketches fixed up, build all passes
2012-12-20 14:51:37 +11:00
Andrew Tridgell
2ea243e45b
AP_Baro: removed unused code
2012-12-20 14:51:37 +11:00
Pat Hickey
bfd03ab40c
AP_Baro: robust spi device
2012-12-20 14:51:35 +11:00
Pat Hickey
60f7788be4
AP_Baro: robust calibration
2012-12-20 14:51:35 +11:00
Pat Hickey
eaa0a990a4
AP_Baro: MS5611 robust semaphores
2012-12-20 14:51:35 +11:00
Pat Hickey
52925b655f
AP_Baro: MS5611 uses delay in busy wait
2012-12-20 14:51:35 +11:00
Pat Hickey
c1114168e4
AP_Baro tests rebase fixups
2012-12-20 14:51:29 +11:00
Pat Hickey
a4f1f6a5db
AP_Progmem: fix dependencies for all sketches touched by AP_HAL_AVR
2012-12-20 14:51:28 +11:00
Pat Hickey
668caa4a2e
Fix calls to AP_HAL::Scheduler::register_timer_process
2012-12-20 14:51:27 +11:00
Pat Hickey
5d40074e4e
AP_Baro: port to AP_HAL
2012-12-20 14:51:26 +11:00
Pat Hickey
3f1d9d7f69
AP_Param: #include <AP_Param.h> fixups for libraries & sketches
...
* I mostly went through with grep and added an #include <AP_Param.h> below
every #include <AP_Common.h>. Not all of these example sketches might
strictly need AP_Param.
2012-12-20 14:51:19 +11:00
Andrew Tridgell
3552f3f9c5
AP_Baro: fixed example build
2012-11-24 21:07:41 +11:00
Andrew Tridgell
e331634bc5
AP_Baro: switch to SREG = oldSREG pattern for interrupt mask/restore
2012-11-20 22:31:17 +11:00
rmackay9
56f88821e9
AP_AHRS: fix example sketch
...
AP_Airspeed: fix example sketch
AP_Baro: fix example sketch
AP_Declination: fix example sketch
AP_Math: fix example sketch
2012-11-08 00:08:18 +09:00