mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 01:43:35 +08:00
[board] Reformat FMUv6s init script to start internal sensor first
This commit is contained in:
committed by
Niklas Hauser
parent
2eac6cca38
commit
b2b80e8075
@@ -12,17 +12,20 @@ board_adc start
|
|||||||
bmi088 -A -R 0 -s start
|
bmi088 -A -R 0 -s start
|
||||||
bmi088 -G -R 0 -s start
|
bmi088 -G -R 0 -s start
|
||||||
|
|
||||||
|
# MAG on I2C4, ROTATION_ROLL_180=8
|
||||||
if ver hwtypecmp V6S013 V6S015
|
if ver hwtypecmp V6S013 V6S015
|
||||||
then
|
then
|
||||||
# Revision(s) with BMM150
|
|
||||||
# MAG on I2C4, ROTATION_ROLL_180=8
|
|
||||||
bmm150 -I -R 8 start
|
bmm150 -I -R 8 start
|
||||||
else
|
else
|
||||||
# Revision(s) with BMM350
|
|
||||||
# MAG on I2C4, ROTATION_ROLL_180=8
|
|
||||||
bmm350 -I -R 8 start
|
bmm350 -I -R 8 start
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# BARO on I2C4
|
||||||
|
bmp388 -I -b 4 -a 0x77 start
|
||||||
|
|
||||||
|
|
||||||
|
# External sensors on I2C1
|
||||||
|
|
||||||
if param compare SENS_EN_INA226 1
|
if param compare SENS_EN_INA226 1
|
||||||
then
|
then
|
||||||
# Start Digital power monitors
|
# Start Digital power monitors
|
||||||
@@ -59,14 +62,11 @@ fi
|
|||||||
|
|
||||||
if param compare BAT1_V_CHANNEL -2
|
if param compare BAT1_V_CHANNEL -2
|
||||||
then
|
then
|
||||||
if [ "$INA_CONFIGURED" != "yes" ]
|
if [ "$INA_CONFIGURED" != "yes" ]
|
||||||
then
|
then
|
||||||
param set BAT1_V_CHANNEL -1
|
param set BAT1_V_CHANNEL -1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# External compass on GPS1/I2C1 (the 3rd external bus): standard Holybro Pixhawk 4 or CUAV V5 GPS/compass puck (with lights, safety button, and buzzer)
|
# External compass IST8310 on I2C1
|
||||||
ist8310 -X -b 1 -R 10 start
|
ist8310 -X -b 1 -R 10 start
|
||||||
|
|
||||||
# BARO on I2C4
|
|
||||||
bmp388 -I -b 4 -a 0x77 start
|
|
||||||
|
|||||||
Reference in New Issue
Block a user