Willian Galvani
307d7bde62
AP_Baro: add Bus6 to BARO_EXT_BUS values
2022-11-08 11:20:59 -03:00
Peter Barker
750772c349
AP_Baro: tidy includes into AP_Baro_config.h
2022-11-01 11:23:22 +11:00
alexklimaj
2ed679f0a8
AP_Baro: BMP390
2022-10-24 07:27:11 +11:00
Andrew Tridgell
13893d3ed5
AP_Baro: added option to treat MS5611 as MS5607
...
and add arming check for pressure altitude error
2022-10-22 08:15:36 +11:00
jackhong12
4a4f361a17
all: use CLASS_NO_COPY() macro
2022-10-04 11:23:04 +11:00
Mohammad Hefny
a8bf2c0141
fix: baro same driver multi-definition
2022-09-01 08:39:43 +10:00
Iampete1
4fa0bcaa91
AP_Baro: params always use set method
2022-08-03 13:43:48 +01:00
李孟晓
2822c30307
AP_Baro: added ICP201XX support
2022-07-19 15:02:31 +10:00
李孟晓
522f1fa6de
AP_Baro: add support for ICP101XX
2022-06-28 11:59:04 +10:00
Peter Barker
b11cd3b69d
AP_Baro: fix clang++ warnings on static inits
...
these are static variables so don't need zeroing anyway...
2022-06-28 10:20:30 +10:00
Peter Barker
4e438464d7
AP_Baro: tidy probing of external i2c baros
2022-06-21 09:09:55 +10:00
Ryan Beall
eb790c6c0b
AP_Baro.cpp: Add in notes for standard day model accuracy
2022-05-26 11:32:45 +10:00
Ryan Beall
5dda9ac9d0
AP_Baro.cpp: no need to set and save FIELD_ELV
...
parameter gets reset on boot
2022-05-26 11:32:45 +10:00
Ryan Beall
cfa0690ab1
AP_Baro.cpp: Move parameter to end of list
2022-05-26 11:32:45 +10:00
Ryan Beall
9f1620f346
AP_Baro.cpp: if not define out AP Periph
2022-05-26 11:32:45 +10:00
Ryan Beall
f9840386bc
AP_Baro.cpp: fix fabsf and use non-fixed temperature for calibration
2022-05-26 11:32:45 +10:00
Ryan Beall
16f0df04dc
AP_Baro.cpp: Atmospheric Model Correction
2022-05-26 11:32:45 +10:00
Peter Barker
b863f8a331
AP_Baro: allow baro backends to be individually compiled out
2022-05-22 12:11:45 +10:00
murata
a78dceb5a0
AP_Baro: Console output can be disabled
2022-05-17 09:53:06 +10:00
Tatsuya Yamaguchi
1638e3c778
AP_Baro: mark BARO_SPEC_GRAV as sub only
2022-05-10 09:35:11 +10:00
Peter Barker
d9f605ed36
AP_Baro: move error logging of sensor health into AP_Baro
2022-05-03 17:38:09 +10:00
Randy Mackay
002bcca7f9
AP_Baro: correct param description refering to EK3 wind est params
...
AP_NavEKF3: correct wind estimate param descriptions
mention of EK3_BCOEF_X/Y becomes EK3_DRAG_BCOEF_X/Y
2022-04-13 07:57:35 +09:00
Peter Barker
daedebce2e
AP_Baro: create and use HAL_SIM_BARO_ENABLED
2022-03-17 14:39:55 +11:00
murata
aabbda3978
AP_Baro: Change from division to multiplication
2022-03-16 18:41:52 +11:00
Peter Barker
7ac33af97b
AP_Baro: include cleanups
2022-03-01 11:21:33 +11:00
Peter Barker
43bbfacef5
AP_Baro: reformat log message to separate fields out
2022-02-28 12:47:57 +11:00
Peter Barker
56761cccf0
AP_Baro: correct should-probe check for Keller Baro
2022-02-02 18:56:43 +11:00
Josh Henderson
319fec2b1f
AP_Baro: add define AP_AIRSPEED_ENABLED
2022-01-19 18:21:32 +11:00
Peter Barker
721ede206d
AP_Baro: create and use HAL_SIM_BARO_ENABLED
2022-01-17 13:13:05 +11:00
Peter Barker
e710969ebb
AP_Baro: make C_TO_KELVIN a function macro; create KELVIN_TO_C
...
These are in celsius
2022-01-13 18:31:46 +11:00
Peter Barker
97ea8b52af
AP_Baro: KellerLD: clean up reading of calibration data
...
Co-authored-by: Josh Henderson <hendjoshsr71@gmail.com>
Checks all return values from transfer functions to avoid use of
uninitialised data.
2021-12-22 18:50:58 +11:00
Jaaaky
f8f9038092
AP_Baro: Fix multi #include's
2021-12-21 10:38:46 +11:00
Peter Barker
5ff410f2cb
AP_Baro: turn wind-compensation off using hwdef defaults
2021-12-19 10:45:16 +11:00
Shiv Tyagi
ef5b43ca95
AP_Baro_KellerLD : add SensorMode enum and _p_mode property
...
This adds SensorMode enum and _p_mode property which is used to set _p_mode_offset
Co-Authored-By: Josh Henderson <69225461+hendjoshsr71@users.noreply.github.com>
Co-Authored-By: ES-Alexander <25898329+ES-Alexander@users.noreply.github.com>
2021-12-17 11:58:19 +11:00
Shiv Tyagi
dd00fd720d
AP_Baro_KellerLD : set/update _p_mode_offset based on _p_mode
...
This initialises/updates _p_mode_offset on the basis of _p_mode
Co-Authored-By: Josh Henderson <69225461+hendjoshsr71@users.noreply.github.com>
Co-Authored-By: ES-Alexander <25898329+ES-Alexander@users.noreply.github.com>
2021-12-17 11:58:19 +11:00
Willian Galvani
2feb740a03
AP_Baro: add option to set BARO_EXT_BUS default value
...
This allows boards to define their own BARO_EXT_BUS default value.
This is mostly relevant for linux boards, as HAL_LINUX doesn't
probe all buses when BARO_EXT_BUS == -1.
2021-10-11 17:57:52 -03:00
Peter Barker
cf9a774bc2
AP_Baro: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Pierre Kancir
ae11353d81
AP_Baro: fix externalAHRS detection
...
'A = B >= C' kind. The expression is calculated as following: 'A = (B >= C)'
2021-08-25 16:37:13 +09:00
Josh Henderson
3c9547caff
AP_Baro_SITL: use temp_board_offset and timeout
2021-08-24 09:55:01 +10:00
Andrew Tridgell
c80a2c2ef6
AP_Baro: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
ES-Alexander
600df16604
Add pressure offset based on device P-mode
2021-08-10 18:30:04 -04:00
ES-Alexander
5fd32d3f36
Enable offset based on P-mode
2021-08-10 18:30:04 -04:00
bugobliterator
90437cb894
AP_Baro: change class name from SITL::SITL to SITL::SIM
2021-08-05 07:25:31 +10:00
Andrew Tridgell
166d13d8c3
AP_Baro: mark log messages as streaming
2021-08-03 10:23:36 +10:00
Andrew Tridgell
8e4d67a7c1
AP_Baro: fixed SITL with SIM_BARO_COUNT==0
...
this allows for testing of SITL with no baro
2021-07-08 07:56:51 +10:00
Peter Barker
c95b56d8fe
AP_Baro: remove @Values from param metadata where @Bitmask exists
2021-06-23 18:37:34 +10:00
Peter Barker
304bc2bc13
AP_Baro: remove HIL support
2021-06-15 09:47:31 +10:00
Peter Barker
4a1eef4565
AP_Baro: move from HAL_NO_LOGGING to HAL_LOGGING_ENABLED
2021-05-19 17:38:47 +10:00
Andrew Tridgell
0fd335af33
AP_Baro: changed health check for AP_Periph
...
avoid alt check and calibration check
2021-05-09 06:44:19 +10:00
Andrew Tridgell
1a81b10d27
AP_Baro: hide unnecessary params on AP_Periph
2021-05-09 06:44:19 +10:00
Andrew Tridgell
474f22c3fe
AP_Baro: allow for define of BARO_MAX_INSTANCES
2021-05-09 06:44:19 +10:00
Andrew Tridgell
901978a9b3
AP_Baro: fixed averaging of samples for several drivers
2021-05-07 20:01:45 +10:00
Andrew Tridgell
46f35a6910
AP_Baro: work around bad WHOAMI read on DPS310
...
this fixes an issue with bad read of WHOAMI on a mRoPixracerPro. We
don't know how the sensor gets in a state where WHOAMI can't be read,
but toggling CS does fix it
2021-03-31 13:26:52 +11:00
zhouzhiwen2000
afde83d2f9
AP_Baro: Fix occasional problems with SPL06
...
Sometimes SPL06 has init problems, that's due to failure of reading using SPI for the first time. The SPL06 is a dual protocol sensor(I2C and SPI), sometimes it takes one SPI operation to convert it to SPI mode.
2021-03-24 14:29:30 +11:00
Pierre Kancir
ce34ce6def
AP_Baro: fix example
2021-03-03 18:07:38 +11:00
Pierre Kancir
95d0c67a99
AP_Baro: fix example
2021-03-03 18:07:38 +11:00
Andrew Tridgell
a42bfd5df5
AP_Baro: added MS5611 baro compensation for -15 to -40C
2021-02-16 11:20:57 +11:00
Andrew Tridgell
dad55b496b
AP_Baro: support DPS310 temperature fix
...
separate DPS310 from DSP280
2021-02-09 11:37:07 +11:00
Patrick José Pereira
6a824b1467
AP_Baro: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Josh Henderson
275c2849cf
AP_Baro: Privatize Logging
2021-02-02 17:55:27 +11:00
Andrew Tridgell
75c789fc57
AP_Baro: added ExternalAHRS backend
2021-01-05 21:13:12 +11:00
Andrew Tridgell
3e2ff71750
AP_Baro: rename params to suit new BARO param naming
2020-12-11 15:21:41 +11:00
Andrew Tridgell
567de3047b
AP_Baro: added modelling of baro wind effects in SITL
2020-12-11 15:21:41 +11:00
Andrew Tridgell
e552fd7e5a
AP_Baro: adjust for new baro params in SITL
2020-12-11 15:21:41 +11:00
Andrew Tridgell
9563c1ed33
AP_Baro: rename wind coefficient params to be clearer
2020-12-11 15:21:41 +11:00
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
2020-12-11 15:21:41 +11:00
Paul Riseborough
0be0498801
AP_Baro: Add static pressure positoin error correction
2020-12-11 15:21:41 +11:00
Andrew Tridgell
d099af87b2
AP_Baro: renamed parameters and mark pressure and temperature readonly
...
this is ready for BARO parameter prefix
2020-12-08 13:22:17 +11:00
Peter Barker
6f7fbece49
AP_Baro: add accessor for external bus parameter
2020-12-04 16:37:10 +11:00
Peter Barker
771666ee52
AP_Baro: correct i2c transfer invocation in KellerLD
...
This allows the device to work on boards which are not Pixhawk1. For
reasons yet to be determined.
2020-12-04 16:37:10 +11:00
Andrew Tridgell
b0ec4f8b93
AP_Baro: removed have_ekf_logging()
2020-11-10 16:15:45 +11:00
murata
22b8ed5adf
AP_Baro: Delete unnecessary return processing
2020-10-27 10:48:52 +11:00
murata
967aa44fbe
AP_Baro: Change message from AP_Baro to Baro for unification accross the file
2020-10-08 10:51:33 +11:00
giacomo892
9c42c0f176
AP_Baro: remove unnecessary debug on DPS280
2020-09-25 08:19:29 +10:00
Kai Schoos
798c3fd0b7
AP_Baro: examples: BARO_generic: instantiate sitl to fix nullptr panic
2020-09-22 14:56:59 +10:00
Andrew Tridgell
7daf8d3cd4
AP_Baro: fixed build warnings for MSP with AP_Periph
2020-09-15 09:40:03 +10:00
yaapu
ea53ce2a3f
AP_Baro: support for MSP barometer
2020-09-09 06:35:50 +10:00
Harshit Kumar Sankhla
d7c569c085
AP_Baro: able to freeze baro using SITL parameter
2020-08-27 20:20:51 +10:00
Andrew Tridgell
326ab0d7b8
AP_Baro: added get_primary() method
2020-08-27 20:20:51 +10:00
Siddharth Purohit
dc02322017
AP_Baro: move to using CANManager library
2020-08-19 17:31:09 +10:00
Patrick José Pereira
e1b6ef3e14
AP_BARO: Fix zero as nullptr in KellerLD
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-08-09 10:12:16 +10:00
Andrew Tridgell
978a7d2859
AP_Baro: added device IDs for barometers
...
this allows us to tell what barometers were detected in logs
2020-07-21 08:20:01 +09:00
Harshit Kumar Sankhla
27fc7dcf0a
AP_Baro: get SITL to work with multiple baros
...
baro readings are independent of each other
and can be configured to behave differently
2020-07-08 16:25:31 +10:00
vierfuffzig
6fa7dca68b
AP-Baro: fix init without baro
2020-05-26 10:04:22 +10:00
Peter Barker
6b232ee515
AP_Baro: add documentation for ICBM message (ICM20789 diagnostics)
2020-04-26 09:02:39 +10:00
Andrew Tridgell
02aebfcd6f
AP_Baro: fixed build warning
2020-04-20 07:10:21 +10:00
Patrick José Pereira
4018a79f83
AP_Baro: Fix scope of HAL_INS_MPU60x0_NAME
...
`read_calibration_data` is defined but only used inside the
definition scope.
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-04-17 15:58:38 +10:00
murata
10b7988092
AP_Baro: Fix timestamp wrapping
2020-04-14 07:30:58 +10:00
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
2020-01-19 20:19:30 +11:00
Andrew Tridgell
8c563ef1bf
AP_Baro: use take_blocking instead of HAL_SEMAPHORE_BLOCK_FOREVER
...
this makes for cleaner and smaller code as the failure case is not
needed
2020-01-19 20:19:30 +11:00
Andrew Tridgell
4d24aa43db
AP_Baro: added dummy driver
...
useful for board bringup
2020-01-18 17:00:44 +11:00
Andrew Tridgell
d8beb55e9f
AP_Baro: fixed BMP388 on SPI
2020-01-18 17:00:44 +11:00
Andrew Tridgell
8e4138b503
AP_Baro: fixed baro health for AP_Periph
2020-01-18 15:44:17 +11:00
Patrick José Pereira
d36157f314
AP_Baro: Add BME280 ID in BMP280
...
BME280 has the same memory layout than BMP280,
but with more features.
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-01-16 08:01:54 +11:00
Peter Barker
4e40c39128
AP_Baro: add missing break statement
2020-01-15 13:55:42 +11:00
CUAVcaijie
8daa8f34c9
AP_Baro: added averaging of CAN baro output
2019-12-26 12:21:41 +11:00
Michel Pastor
0857cf49d5
AP_Baro: add driver for the SPL06-001
2019-11-24 16:47:31 -08:00
Michel Pastor
ada1239012
AP_Baro: fix PROBE_EXT parameter description
2019-11-18 08:23:33 +08:00
Mark Whitehorn
a1868b8b67
AP_Baro: rename sensor_config_error to config_error
2019-11-08 10:14:34 +11:00
murata
233fb94417
AP_Baro: Add I2C Access
2019-10-27 20:02:27 +11:00