feat(boards/px4_fmu-v6x): add BMP581 fallback support (#28401)

Probe the existing barometers first and start BMP581 at address 0x46 only when they are not detected, preserving compatibility with existing hardware.

Signed-off-by: Brown <zebulon-86@outlook.com>
Co-authored-by: Farhang <46557204+farhangnaderi@users.noreply.github.com>
(cherry picked from commit 0e2600dba6)
This commit is contained in:
Holybro-zebulon-86 authored and Ramon Roche committed 2026-08-28 09:25:38 -07:00
1 parent 663a232bc6
commit aa072afcad
2 files changed
+9 -2

No files matched your search

+1
View File
@@ -11,6 +11,7 @@ CONFIG_BOARD_SERIAL_EXT2="/dev/ttyS3"
CONFIG_DRIVERS_ADC_ADS1115=y
CONFIG_DRIVERS_ADC_BOARD_ADC=y
CONFIG_DRIVERS_BAROMETER_BMP388=y
CONFIG_DRIVERS_BAROMETER_BMP581=y
CONFIG_DRIVERS_BAROMETER_INVENSENSE_ICP201XX=y
CONFIG_DRIVERS_CAMERA_CAPTURE=y
CONFIG_DRIVERS_CAMERA_TRIGGER=y
+8 -2
View File
@@ -141,7 +141,10 @@ if param compare SENS_INT_BARO_EN 1
then
if ver hwtypecmp V6X001 V6X006 V6X008
then
icp201xx -I -a 0x64 start
if ! icp201xx -I -a 0x64 -q start
then
bmp581 -I -a 0x46 start
fi
else
bmp388 -I -a 0x77 start
fi
@@ -152,7 +155,10 @@ if ver hwtypecmp V6X001
then
icp201xx -X start
else
bmp388 -X start
if ! bmp388 -X -q start
then
bmp581 -X -a 0x46 start
fi
fi
unset INA_CONFIGURED