Iampete1
4fa0bcaa91
AP_Baro: params always use set method
3 years ago
Ryan Beall
16f0df04dc
AP_Baro.cpp: Atmospheric Model Correction
3 years ago
Peter Barker
b863f8a331
AP_Baro: allow baro backends to be individually compiled out
3 years ago
Peter Barker
daedebce2e
AP_Baro: create and use HAL_SIM_BARO_ENABLED
3 years ago
Peter Barker
7ac33af97b
AP_Baro: include cleanups
3 years ago
Peter Barker
721ede206d
AP_Baro: create and use HAL_SIM_BARO_ENABLED
3 years ago
Peter Barker
5ff410f2cb
AP_Baro: turn wind-compensation off using hwdef defaults
3 years ago
Peter Barker
304bc2bc13
AP_Baro: remove HIL support
4 years ago
Andrew Tridgell
0fd335af33
AP_Baro: changed health check for AP_Periph
...
avoid alt check and calibration check
4 years ago
Andrew Tridgell
474f22c3fe
AP_Baro: allow for define of BARO_MAX_INSTANCES
4 years ago
Patrick José Pereira
6a824b1467
AP_Baro: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
4 years ago
Josh Henderson
275c2849cf
AP_Baro: Privatize Logging
4 years ago
Andrew Tridgell
75c789fc57
AP_Baro: added ExternalAHRS backend
4 years ago
Andrew Tridgell
1c1c067dee
AP_Baro: rework to separate out wind coefficient params
...
- disable on low flash boards
- add an enable parameter per baro for wind coeffients
4 years ago
Paul Riseborough
0be0498801
AP_Baro: Add static pressure positoin error correction
4 years ago
Peter Barker
6f7fbece49
AP_Baro: add accessor for external bus parameter
4 years ago
Andrew Tridgell
7daf8d3cd4
AP_Baro: fixed build warnings for MSP with AP_Periph
4 years ago
yaapu
ea53ce2a3f
AP_Baro: support for MSP barometer
4 years ago
Andrew Tridgell
326ab0d7b8
AP_Baro: added get_primary() method
5 years ago
Andrew Tridgell
978a7d2859
AP_Baro: added device IDs for barometers
...
this allows us to tell what barometers were detected in logs
5 years ago
Andrew Tridgell
322bad3fd9
AP_Baro: make all semaphores recursive
...
the cost is very similar and this prevents an easy coding error which
can occur on less used code paths
5 years ago
Michel Pastor
0857cf49d5
AP_Baro: add driver for the SPL06-001
5 years ago
Andrew Tridgell
a19e55e83c
AP_Baro: added BMP388 driver
6 years ago
Michael du Breuil
5645709e50
AP_Baro: Rearrange the sensor struct
...
Saves 12 bytes of RAM, 144 bytes of flash on CubeBlack
6 years ago
Andrew Tridgell
5023b51679
AP_Baro: added semaphore for safe multi-thread use of APIs
6 years ago
Tom Pittenger
b54da9aab8
AP_Baro: rename dataflash to logger
6 years ago
Tom Pittenger
52887e1c45
AP_Baro: unify singleton naming to _singleton and get_singleton()
6 years ago
Andrew Tridgell
1439b1a730
AP_Baro: added option to probe any i2c baro using GND_PROBE_EXT
...
This adds a hwdef.dat define HAL_PROBE_EXTERNAL_I2C_BAROS. When set,
we get a new parameter GND_PROBE_EXT that is a bitmask of i2c
barometers to look for.
This allows boards that have no builtin baro to work without
rebuilding
7 years ago
Patrick José Pereira
c7f832e81f
AP_Baro: Add SimpleUnderWaterAtmosphere function
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
7 years ago
Peter Barker
a5dc87e2af
AP_Baro: do dataflash logging as part of update
7 years ago
night-ghost
cb8a34f784
AP_Baro: added range filter to backend, use it in most sensors (thanks khancyr for style correction)
7 years ago
Peter Barker
0675f41d1e
AP_Baro: create AP::baro() function
7 years ago
Andrew Tridgell
472eed3847
AP_Baro: enable use of pressure correction
...
this allows for temperature correction of baro pressure
7 years ago
rde-mato
787420931e
AP_Baro: make AP_Baro a singleton
...
for AP_Airspeed
7 years ago
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
c5c1d5abfe
AP_Baro: add static create method
7 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
Andrew Tridgell
9bdf971336
AP_Baro: added set_pressure_correction()
...
for use by AP_TempCalibration
8 years ago
Andrew Tridgell
ee4161fa62
AP_Baro: moved SITL baro to standard sensor backend model
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
Jacob Walser
613bc46592
AP_Baro: Add support for water pressure and Sub
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
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
Andrew Tridgell
f2246326bb
AP_Baro: added MS5611 probing, and support 3 baros on Pixhawk2
...
this adds sensor probing for barometers, simplifies the MS5611 driver,
and adds support for the I2C external barometers on Pixhawk2
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Tom Pittenger
1d81df8144
Revert "AP_Baro: coverity scan - variables not initialized in constructor"
...
This reverts commit 8d2872d3ab
.
9 years ago
Tom Pittenger
8d2872d3ab
AP_Baro: coverity scan - variables not initialized in constructor
9 years ago
Tom Pittenger
f1f58e2026
AP_Baro: created baro drift offset accessor
9 years ago
Tom Pittenger
37ee3b44d2
AP_Baro: add accessor for baro drift
9 years ago