Andrew Tridgell
817e7442bd
baro: fixed an integer overflow issue at high altitudes
...
the averaging array was using 16 bit numbers, but we are storing
numbers with 19 significant bits. That caused overflow at high
altitude, and some very interesting altitude graphs!
Thanks to Michael Oborne for spotting this in a log
2012-01-14 19:51:35 +11:00
Andrew Tridgell
a7a00a35ab
AP_Baro: when I2c fails, don't retry for 1s
2012-01-04 16:35:16 +11:00
Andrew Tridgell
671d0b82ad
Baro: fixed MS5611 example sketch
2011-12-28 21:49:29 +11:00
Andrew Tridgell
c448e85ed1
Baro: show timing in baro test
2011-12-28 21:43:52 +11:00
Andrew Tridgell
2960abf41f
I2C: convert barometer library to new I2C library
...
this also adds a healthy attribute and error checking
2011-12-28 20:41:53 +11:00
Andrew Tridgell
5b75458502
AP_Baro: update MS5611 driver for new ap_proceduce prototype
...
this saves calling millis() quite so often
2011-12-21 23:31:38 +11:00
Andrew Tridgell
0c8c707980
AP_Baro: fixed temperature on MS5611
...
this caused a 2x scaling of altitude
2011-12-17 14:58:58 +11:00
Andrew Tridgell
de5c1c5147
barometer: fixed HIL barometer build
2011-12-12 15:14:55 +11:00
Pat Hickey
5819f99986
AP_Baro_MS5611: Asynchronous operation, plus c++ style changes.
...
Yeah, I know this was a big change to make all at once.
2011-12-11 15:21:10 -08:00
Pat Hickey
3d882c4d49
AP_Baro : Add init( AP_PeriodicProcess * ) method to interface & implementations
...
AP_Baro_MS5611 and AP_Baro_BMP085 implement the interface, with stubs only
2011-12-11 15:21:10 -08:00
Pat Hickey
d5386b8bb8
AP_Baro_BMP085: move apm2_hardware flag from init to constructor.
2011-12-11 15:21:10 -08:00
Pat Hickey
6710cf5c5a
Wire and SPI Init: move to sketch system.pde from libraries
...
* Wire.begin removed from AP_Baro_BMP085::init()
* SPI.begin removed from AP_Baro_MS5611::init()
* SPI.begin removed from AP_InertialSensor_MPU6000::hardware_init()
* Both Wire.begin and SPI.begin added very early in init_ardupilot in
ArduCopter/system.pde and ArduPlane/system.pde
2011-12-11 15:21:10 -08:00
Pat Hickey
12222550cf
AP_Baro_BMP085: Delete commented out code
...
* If its important to get old code back, thats why version control exists
2011-12-11 15:21:09 -08:00
Pat Hickey
9a9b63259a
AP_Baro_BMP085: implement AP_Baro interface
2011-12-11 15:21:09 -08:00
Pat Hickey
45cbb24ba5
AP_Baro_MS5611: init must also perform SPI.begin
2011-12-11 15:21:09 -08:00
Pat Hickey
a75257f102
AP_Baro_MS5611: CS pin is arduino pin 40
2011-12-11 15:21:09 -08:00
Pat Hickey
7b708f8054
AP_Baro_MS5611: Implement AP_Baro interface
2011-12-11 15:21:09 -08:00
Pat Hickey
41ecb0fef4
AP_Baro_BMP085: Conform to AP_Baro interface. Make the rest private.
2011-12-11 15:21:09 -08:00
Pat Hickey
264cb1a26e
AP_Baro_MS5611: conform to AP_Baro interface
2011-12-11 15:21:09 -08:00
Pat Hickey
c3aab6af83
AP_Baro: Create virtual interface
2011-12-11 15:21:09 -08:00
Pat Hickey
84cb023b12
AP_Baro_MS5611: renamed class implementation from APM_MS5611
2011-12-11 15:21:09 -08:00
Pat Hickey
3d93eb9534
AP_Baro_MS5611.h: reorganized
...
* moved ms5611 macros to c file
* reorganized class declaration & retabbed
* made Temp, Pres, and Alt private variables.
2011-12-11 15:21:09 -08:00
Pat Hickey
8f16b736a4
AP_Baro_MS5611: Overwrote with Jose Julio's latest files.
2011-12-11 15:21:09 -08:00
Pat Hickey
f5720be81f
AP_Baro: Export AP_Baro_BMP085 and AP_Baro_BMP085_HIL headers.
2011-12-11 15:21:09 -08:00
Pat Hickey
e8e4881da8
AP_Baro_BMP085(+_HIL): Rename classes from APM_BMP085 to AP_Baro_BMP085.
2011-12-11 15:21:09 -08:00
Pat Hickey
917418994d
BMP085 fix line endings
2011-12-11 15:21:09 -08:00
Pat Hickey
7b51a2c42a
AP_Baro: move all APM_BMP085 files inside AP_Baro
2011-12-11 15:21:09 -08:00
Pat Hickey
cca6b2f98c
Added AP_Baro and AP_Baro_MS5611 classes.
...
Incomplete and does not work.
2011-12-11 15:21:08 -08:00