Andrew Tridgell
20b1131059
AP_Baro: use new scheduler API
12 years ago
Mike McCauley
e3c20f06ac
AP_Baro: Chnages to flymaple port.
...
Flymaple has no EOC pin
12 years ago
Andrew Tridgell
fc119d9b80
AP_Baro: cleaned up temperature and pressure units
...
thanks to Mike McCauley for pointing this out
12 years ago
Andrew Tridgell
97b7130bb9
libraries: update license header to GPLv3
...
we switched to GPLv3 a long time ago, but neglected to update the
per-file license headers
12 years ago
Andrew Tridgell
517c44bbaa
AP_Baro: fixed example build
12 years ago
Andrew Tridgell
395739dded
AP_Baro: simplify PX4 driver
...
we can now rely on queueing in NuttX driver
12 years ago
Andrew Tridgell
5607c89df0
AP_Baro: use fabs() not abs()
...
thanks to Randy for spotting this
12 years ago
Paul Riseborough
ba009e55e3
AP_Baro : Fixed bug in temperature units in AP_Baro_HIL
12 years ago
Andrew Tridgell
ebebee4f06
AP_Baro: extend the atmospheric model to higher altitudes
12 years ago
Andrew Tridgell
0c6725f289
AP_Baro: improved the accuracy of the barometer model
12 years ago
Andrew Tridgell
0f72401d8d
AP_Baro: added GND_ALT_OFFSET parameter
...
used for automatic barometric adjustment by a ground station equipped
with a barometer
12 years ago
Paul Riseborough
7bdb098e77
AP_Baro: added get_EAS2TAS()
...
this provides the scaling factor between equivalent and true airspeed
based on altitude
12 years ago
Andrew Tridgell
61361dac9b
AP_Baro: added units to baro documentation
12 years ago
Paul Riseborough
3b98bbd159
AP_Baro: more precise altitude calculation on PX4
...
if not using an AVR CPU then use a more computationally expensive
altitude calculation, which is more precise at higher altitudes
12 years ago
Randy Mackay
aa2b10f044
AP_Baro: TEMP parameter comment fix
12 years ago
Andrew Tridgell
ed93f80ba9
AP_Baro: fixed example build
12 years ago
Andrew Tridgell
26bf636541
AP_Baro: fixed a build warning
12 years ago
Andrew Tridgell
7cec3caf19
AP_Baro: cleaned up setHIL method
...
move pressure calculation into library
12 years ago
Andrew Tridgell
c6c1fce2f1
AP_Baro: removed HIL constructor
...
this wasn't calling the parent class
12 years ago
Andrew Tridgell
2d089174cd
AP_Baro: rename AP_Baro_BMP085_HIL to AP_Baro_HIL
...
there is nothing specific to the BMP085 in it
12 years ago
Andrew Tridgell
d7ec985029
AP_Baro_PX4: fixed baro driver to run at full rate
...
we were skipping samples due to a timer handling bug. It now checks
for new samples at 100Hz
12 years ago
Janne Mäntyharju
7a04fe9915
AP_Baro: Fixed build for APM2 Beta hardware
12 years ago
Andrew Tridgell
f0469a21f2
AP_Baro: fixed timestamp on baro for PX4
...
milliseconds not microseconds
12 years ago
Andrew Tridgell
b9b3ef91a1
AP_Baro: added timer to PX4 driver
...
this gives us more samples when main sketch is reading slowly
12 years ago
Andrew Tridgell
6a5421a361
AP_Baro: ask for maximum poll rate for PX4
12 years ago
Andrew Tridgell
74f7b0f218
AP_Baro: added accumulate method to PX4 driver, and fixed scaling
12 years ago
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.
12 years ago
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.
12 years ago
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.
12 years ago
Andrew Tridgell
2c603a0960
AP_Baro: only build BMP085 driver on APM1
12 years ago
Andrew Tridgell
8cb0ed364a
AP_Baro: read 4 pressure values for every temperature value on BMP085
12 years ago
Andrew Tridgell
1ce1fa3864
AP_Baro: update example to use accumulate()
12 years ago
Andrew Tridgell
8ceabc97f1
AP_Baro: added accumulate() function
...
this allows us to read the BMP085 much faster
12 years ago
Andrew Tridgell
9b972af307
AP_Baro: skip timer if we don't get the SPI semaphore
12 years ago
James Bielman
eca1417858
AP_HAL: Add semaphores to I2C driver.
...
- Guard I2C transactions with this semaphore in the MS5611 and
HMC5843 drivers.
12 years ago
Andrew Tridgell
c15bf95e19
AP_Baro: fixed example build on AVR
12 years ago
Andrew Tridgell
aa64a41512
AP_Baro: removed debug line
12 years ago
Andrew Tridgell
4fe7ad6267
AP_Baro: added averaging to PX4 baro driver
12 years ago
Andrew Tridgell
dbcaa4cf3c
AP_Baro: average over multiple samples in PX4 baro driver
12 years ago
Andrew Tridgell
2ac6541526
AP_Baro: added PX4 barometer driver
12 years ago
James Bielman
d84ba8ef59
Use HAL suspend/resume timer procs rather than atomic.
...
- Preparation for removing begin/end atomic.
12 years ago
Pat Hickey
5d91f342bb
AP_Baro_MS5611: uses new semaphore lib
12 years ago
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.
12 years ago
James Bielman
5753ae5692
AP_Baro: Add I2C support to MS5611 driver.
12 years ago
Andrew Tridgell
374af1cd14
build: change from Arduino.mk to apm.mk
12 years ago
Andrew Tridgell
c5ba33d39a
AP_Baro: fixed MS5611 semaphore handling
12 years ago
Andrew Tridgell
3aa39da6cd
AP_Baro: removed some debug code
12 years ago
Andrew Tridgell
a1187519a8
AP_HAL: use AP_HAL_BOARD_DRIVER in remaining test sketches
12 years ago
Andrew Tridgell
c15eb97c8d
AP_Baro: fixed example build
12 years ago
Pat Hickey
eb530b86e8
move Arduino.mk to /mk/Arduino.mk
12 years ago