mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 16:56:25 +08:00
Change boot order to make sure the adis mag is the priority one
This commit is contained in:
@@ -21,6 +21,23 @@ fi
|
||||
# Begin Optional drivers #
|
||||
###############################################################################
|
||||
|
||||
# ADIS16448 spi external IMU
|
||||
if param compare -s SENS_EN_ADIS164X 1
|
||||
then
|
||||
if param compare -s SENS_OR_ADIS164X 0
|
||||
then
|
||||
adis16448 -S start
|
||||
fi
|
||||
if param compare -s SENS_OR_ADIS164X 4
|
||||
then
|
||||
adis16448 -S start -R 4
|
||||
fi
|
||||
|
||||
# add a sleep to make sure the mag is the priority one
|
||||
usleep 1000000
|
||||
fi
|
||||
|
||||
|
||||
if param compare -s SENS_EN_BATT 1
|
||||
then
|
||||
batt_smbus start -X
|
||||
@@ -108,19 +125,6 @@ then
|
||||
vl53l1x start -X
|
||||
fi
|
||||
|
||||
# ADIS16448 spi external IMU
|
||||
if param compare -s SENS_EN_ADIS164X 1
|
||||
then
|
||||
if param compare -s SENS_OR_ADIS164X 0
|
||||
then
|
||||
adis16448 -S start
|
||||
fi
|
||||
if param compare -s SENS_OR_ADIS164X 4
|
||||
then
|
||||
adis16448 -S start -R 4
|
||||
fi
|
||||
fi
|
||||
|
||||
# Hall effect sensors si7210
|
||||
# Potentially remove the -k option if possible and improve the startup if possible
|
||||
if param greater CAL_AV_AOA_ID -1
|
||||
|
||||
Reference in New Issue
Block a user