Skip to content

Commit

Permalink
px4_fmu-v6x:rc.board_sensors Use BOARD_HAS_HW_SPLIT_VERSIONING
Browse files Browse the repository at this point in the history
  • Loading branch information
davids5 committed Jan 26, 2024
1 parent 1915e8d commit c72bf70
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions boards/px4/fmu-v6x/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ then
fi

#Start Auterion Power Module selector for Skynode boards
if ver hwtypecmp V6X009010 V6X010010
if ver hwbasecmp 009 010
then
pm_selector_auterion start
else
Expand All @@ -70,25 +70,25 @@ else
fi
fi

if ver hwtypecmp V6X000006 V6X004006 V6X005006
if ver hwtypecmp V6X006
then
# Internal SPI bus ICM45686
icm45686 -s -R 10 start
iim42652 -s -R 6 start
adis16470 -s -R 0 start
else
if ver hwtypecmp V6X000004 V6X001004 V6X004004 V6X005004
if ver hwtypecmp V6X004
then
# Internal SPI bus ICM20649
icm20649 -s -R 6 start
else
# Internal SPI BMI088
if ver hwtypecmp V6X009010 V6X010010
if ver hwbasecmp 009 010
then
bmi088 -A -R 6 -s start
bmi088 -G -R 6 -s start
else
if ver hwtypecmp V6X000010
if ver hwtypecmp V6X010
then
bmi088 -A -R 0 -s start
bmi088 -G -R 0 -s start
Expand All @@ -100,24 +100,24 @@ else
fi

# Internal SPI bus ICM42688p
if ver hwtypecmp V6X009010 V6X010010
if ver hwbasecmp 009 010
then
icm42688p -R 12 -s start
else
if ver hwtypecmp V6X000010
if ver hwtypecmp V6X010
then
icm42688p -R 14 -s start
else
icm42688p -R 6 -s start
fi
fi

if ver hwtypecmp V6X000003 V6X001003 V6X003003 V6X000004 V6X001004 V6X004003 V6X004004 V6X005003 V6X005004
if ver hwtypecmp V6X003 V6X004
then
# Internal SPI bus ICM-42670-P (hard-mounted)
icm42670p -R 10 -s start
else
if ver hwtypecmp V6X009010 V6X010010
if ver hwbasecmp 009 010
then
icm20602 -R 6 -s start
else
Expand All @@ -128,7 +128,7 @@ else
fi

# Internal magnetometer on I2c
if ver hwtypecmp V6X002001
if ver hwtypecmp V6X001
then
rm3100 -I -b 4 start
else
Expand All @@ -142,7 +142,7 @@ ist8310 -X -b 1 -R 10 start
# Possible internal Baro
if param compare SENS_INT_BARO_EN 1
then
if ver hwtypecmp V6X002001 V6X000006 V6X004006 V6X005006
if ver hwtypecmp V6X001 V6X006
then
icp201xx -I -a 0x64 start
else
Expand All @@ -151,7 +151,7 @@ then
fi

#external baro
if ver hwtypecmp V6X002001
if ver hwtypecmp V6X001
then
icp201xx -X start
else
Expand Down

0 comments on commit c72bf70

Please sign in to comment.