mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
rc.sensors fix indentation
This commit is contained in:
committed by
Lorenz Meier
parent
9d494e625f
commit
69cc4d7e7f
@@ -11,46 +11,44 @@ then
|
|||||||
|
|
||||||
else
|
else
|
||||||
if ver hwcmp AEROFC_V1
|
if ver hwcmp AEROFC_V1
|
||||||
# Aero FC uses separate driver
|
|
||||||
then
|
then
|
||||||
|
# Aero FC uses separate driver
|
||||||
else
|
else
|
||||||
|
if ver hwcmp CRAZYFLIE
|
||||||
|
then
|
||||||
|
# Crazyflie uses separate driver
|
||||||
|
else
|
||||||
|
# Configure all I2C buses to 100 KHz as they
|
||||||
|
# are all external or slow
|
||||||
|
fmu i2c 1 100000
|
||||||
|
fmu i2c 2 100000
|
||||||
|
fi
|
||||||
|
|
||||||
if ver hwcmp CRAZYFLIE
|
if ver hwcmp PX4FMU_V4
|
||||||
then
|
then
|
||||||
# Crazyflie uses separate driver
|
# We know there are sketchy boards out there
|
||||||
else
|
# as chinese companies produce Pixracers without
|
||||||
|
# fully understanding the critical parts of the
|
||||||
|
# schematic and BOM, leading to sensor brownouts
|
||||||
|
# on boot. Original Pixracers following the
|
||||||
|
# open hardware design do not require this.
|
||||||
|
fmu sensor_reset 50
|
||||||
|
fi
|
||||||
|
|
||||||
# Configure all I2C buses to 100 KHz as they
|
# External SPI
|
||||||
# are all external or slow
|
if ms5611 -S start
|
||||||
fmu i2c 1 100000
|
then
|
||||||
fmu i2c 2 100000
|
fi
|
||||||
|
|
||||||
fi
|
# Internal SPI
|
||||||
|
if ms5611 -s start
|
||||||
if ver hwcmp PX4FMU_V4
|
then
|
||||||
then
|
fi
|
||||||
# We know there are sketchy boards out there
|
|
||||||
# as chinese companies produce Pixracers without
|
|
||||||
# fully understanding the critical parts of the
|
|
||||||
# schematic and BOM, leading to sensor brownouts
|
|
||||||
# on boot. Original Pixracers following the
|
|
||||||
# open hardware design do not require this.
|
|
||||||
fmu sensor_reset 50
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ms5611 -S start
|
|
||||||
then
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ms5611 -s start
|
|
||||||
then
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Blacksheep telemetry
|
|
||||||
if bst start
|
|
||||||
then
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
# Blacksheep telemetry
|
||||||
|
if bst start
|
||||||
|
then
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user