px4_fmu-v6x:rc.board_sensors Use BOARD_HAS_HW_SPLIT_VERSIONING

This commit is contained in:
David Sidrane 2024-01-15 08:24:31 -08:00 committed by Daniel Agar
parent 987d97d600
commit 84dddb5f40
1 changed files with 12 additions and 12 deletions

View File

@ -55,7 +55,7 @@ then
fi fi
#Start Auterion Power Module selector for Skynode boards #Start Auterion Power Module selector for Skynode boards
if ver hwtypecmp V6X009010 V6X010010 if ver hwbasecmp 009 010
then then
pm_selector_auterion start pm_selector_auterion start
else else
@ -70,25 +70,25 @@ else
fi fi
fi fi
if ver hwtypecmp V6X000006 V6X004006 V6X005006 if ver hwtypecmp V6X006
then then
# Internal SPI bus ICM45686 # Internal SPI bus ICM45686
icm45686 -s -R 10 start icm45686 -s -R 10 start
iim42652 -s -R 6 start iim42652 -s -R 6 start
adis16470 -s -R 0 start adis16470 -s -R 0 start
else else
if ver hwtypecmp V6X000004 V6X001004 V6X004004 V6X005004 if ver hwtypecmp V6X004
then then
# Internal SPI bus ICM20649 # Internal SPI bus ICM20649
icm20649 -s -R 6 start icm20649 -s -R 6 start
else else
# Internal SPI BMI088 # Internal SPI BMI088
if ver hwtypecmp V6X009010 V6X010010 if ver hwbasecmp 009 010
then then
bmi088 -A -R 6 -s start bmi088 -A -R 6 -s start
bmi088 -G -R 6 -s start bmi088 -G -R 6 -s start
else else
if ver hwtypecmp V6X000010 if ver hwtypecmp V6X010
then then
bmi088 -A -R 0 -s start bmi088 -A -R 0 -s start
bmi088 -G -R 0 -s start bmi088 -G -R 0 -s start
@ -100,11 +100,11 @@ else
fi fi
# Internal SPI bus ICM42688p # Internal SPI bus ICM42688p
if ver hwtypecmp V6X009010 V6X010010 if ver hwbasecmp 009 010
then then
icm42688p -R 12 -s start icm42688p -R 12 -s start
else else
if ver hwtypecmp V6X000010 if ver hwtypecmp V6X010
then then
icm42688p -R 14 -s start icm42688p -R 14 -s start
else else
@ -112,12 +112,12 @@ else
fi fi
fi fi
if ver hwtypecmp V6X000003 V6X001003 V6X003003 V6X000004 V6X001004 V6X004003 V6X004004 V6X005003 V6X005004 if ver hwtypecmp V6X003 V6X004
then then
# Internal SPI bus ICM-42670-P (hard-mounted) # Internal SPI bus ICM-42670-P (hard-mounted)
icm42670p -R 10 -s start icm42670p -R 10 -s start
else else
if ver hwtypecmp V6X009010 V6X010010 if ver hwbasecmp 009 010
then then
icm20602 -R 6 -s start icm20602 -R 6 -s start
else else
@ -128,7 +128,7 @@ else
fi fi
# Internal magnetometer on I2c # Internal magnetometer on I2c
if ver hwtypecmp V6X002001 if ver hwtypecmp V6X001
then then
rm3100 -I -b 4 start rm3100 -I -b 4 start
else else
@ -142,7 +142,7 @@ ist8310 -X -b 1 -R 10 start
# Possible internal Baro # Possible internal Baro
if param compare SENS_INT_BARO_EN 1 if param compare SENS_INT_BARO_EN 1
then then
if ver hwtypecmp V6X002001 V6X000006 V6X004006 V6X005006 if ver hwtypecmp V6X001 V6X006
then then
icp201xx -I -a 0x64 start icp201xx -I -a 0x64 start
else else
@ -151,7 +151,7 @@ then
fi fi
#external baro #external baro
if ver hwtypecmp V6X002001 if ver hwtypecmp V6X001
then then
icp201xx -X start icp201xx -X start
else else