Andrew Tridgell
68f8817e97
AP_Baro: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Lucas De Marchi
69b6d95cb2
global: use static method to construct AP_Board_Config{,_CAN}
7 years ago
Lucas De Marchi
91feec0e14
global: use static method to construct AP_Baro
7 years ago
Lucas De Marchi
c5c1d5abfe
AP_Baro: add static create method
7 years ago
liorosh
f2b7dc74d7
AP_Baro: Adding a new LPS25H Barometer driver
...
The following is a Barometer sensor driver for the LPS25H Barometer that
is integrated in the 96Boards STM32 Sensor mezzanine board.
the update includes the .cpp and .h files of the driver as well as the
updates required in AP_Baro.cpp.
8 years ago
Jacob Walser
e492c733d8
AP_Baro: fixup Keller LD comments
8 years ago
Jacob Walser
07e00de549
AP_Baro: Tweak Keller LD driver for better performance after initial tests
8 years ago
Jacob Walser
2a71afd3ba
AP_Baro: Remove superfluous casts
8 years ago
Jacob Walser
a08da4ecc4
AP_Baro: New AP_Baro_Keller device driver
8 years ago
Lucas De Marchi
7c6f9a004e
AP_Baro: use FALLTHROUGH define
...
When falling through on a case switch, allow to add an empty statement
with the correct attribute to tell the compiler this behavior is
intended.
8 years ago
khancyr
2d0bce18a8
AP_Baro: rename all local variable with prefix
...
fix last missing spaces
8 years ago
khancyr
35ac86ff8d
AP_Baro: fix some style and const correctness
8 years ago
khancyr
0e895f5c74
AP_Baro: fix instance shadowing
8 years ago
Kevin Lopez Alvarez
18dab4829a
AP_Baro: initial FMUv4pro support
8 years ago
Michael du Breuil
6b60c110a5
AP_Baro: Improve GND_TEMP parameter docs
8 years ago
Michael du Breuil
f14667225d
AP_Baro: Avoid a FPE when ground pressure is negative
8 years ago
Peter Barker
1748e7cb0c
AP_Baro: make backends responsible for setting their health
...
This resolves a problem in SITL where the barometer would
not change value for prolonged period of time, making it
go unhealthy
8 years ago
Randy Mackay
6982e58cf2
Baro: health check that values are changing
8 years ago
Eugene Shamaev
6e6efa7e1b
AP_Baro: enumeration and multiple interfaces support
8 years ago
Miguel Arroyo
6cf9b870b5
AP_Baro: AP_Baro_SITL more accurately simulates real sensor backend.
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
ed916327fc
AP_Baro: Use SI units conventions in parameter units
...
Follow the rules from:
http://physics.nist.gov/cuu/Units/units.html
http://physics.nist.gov/cuu/Units/outside.html
and
http://physics.nist.gov/cuu/Units/checklist.html
one further constrain is that only printable (7bit) ASCII characters are allowed
8 years ago
Peter Barker
ccc495e4c1
AP_Baro: use HAL_SEMAPHORE_BLOCK_FOREVER macro
8 years ago
Andrew Tridgell
375c7b0f5f
AP_Baro: rename macros to avoid conflicts
...
these macros were also defined in NuttX in clock.h
8 years ago
Andrew Tridgell
9bdf971336
AP_Baro: added set_pressure_correction()
...
for use by AP_TempCalibration
8 years ago
Andrew Tridgell
99883ffc49
AP_Baro: added temperature sensitivity modelling in SITL
8 years ago
Andrew Tridgell
ee4161fa62
AP_Baro: moved SITL baro to standard sensor backend model
8 years ago
Andrew Tridgell
cbea29ad71
AP_Baro: use sensor_config_error()
8 years ago
Jacob Walser
96f503d9d1
AP_Baro: Fix GND_EXT_BUS @Values formatting
8 years ago
Eugene Shamaev
fd866d3e20
AP_Baro: removal of legacy UAVCAN support
8 years ago
Eugene Shamaev
331419a51e
AP_Baro: support for UAVCAN connected barometers
8 years ago
Michael du Breuil
c37209a8d5
AP_Baro: Limit ground temperature used for the altitude
...
Fix an incorrect EAS2TAS that was double counting altitude
8 years ago
Tom Pittenger
fb24a03faf
AP_Baro: don't compile drivers for devices that don't use them
8 years ago
Lucas De Marchi
00c2949dfb
Add support for baro on aerofc
8 years ago
Francisco Ferreira
f6687a2d6c
AP_Baro: fix example output
...
PX4 boards can only start console after USB is connected so we need to
check it is available
8 years ago
Andrew Tridgell
d5cad2ae44
AP_Baro: support AUAV21 board
8 years ago
Tom Pittenger
fb214ef95f
AP_Baro: fixed spelling in comment
8 years ago
Jacob Walser
613bc46592
AP_Baro: Add support for water pressure and Sub
8 years ago
murata
f5c3de2a61
AP_Baro: Change from magic number 0 to definition name.
8 years ago
Lucas De Marchi
9814dc81e2
AP_Baro: examples: better output formatting
8 years ago
Lucas De Marchi
402f0cce85
AP_Baro: examples: fix coding style
8 years ago
murata
32b60432b4
AP_Baro: Add format specification.
...
AP_Baro: Add format specification.
8 years ago
murata
78a4cab06b
AP_Baro: Unify from print or println to printf.
8 years ago
Andrew Tridgell
8aa100d164
AP_Baro: fix for change to timer API
8 years ago
mirkix
1ce5e5360a
AP_Baro: Add Bosch BMP280 driver
8 years ago
Lucas De Marchi
5472bc4de1
Global: change Device::PeriodicCb signature
...
Remove bool return as it's never being used and not supported on PX4.
8 years ago
murata
87c2dfd921
AP_Baro: Change to secure code, from magic number to sizeof value.
8 years ago
Victor Lambret
a4108251e3
AP_Baro: fix get_last_update(instance)
...
The method was not using the instance parameter. Instead it always use
primary barometer. Bug was not detected because method
get_last_update() is used where instance is _primary.
Detected with warnings, warnings are useful :-)
8 years ago
murata
753638851e
AP_Baro: Changed if statements to switch statement.
8 years ago
Andrew Tridgell
8a1275356d
AP_Baro: moved MS5611 reset before prom read
...
thanks to Jacob and Lucas for pointing this out
8 years ago
Andrew Tridgell
eea7758a63
AP_Baro: added GND_EXT_BUS option
...
this is needed to enable probing for a MS5611 on external I2C bus. The
MS5611 looks the same as a MS5525 airspeed sensor, so we can't just
auto-probe. Users will need to enable external barometers
8 years ago