mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:38:52 +08:00
49 lines
573 B
Bash
49 lines
573 B
Bash
#!/bin/sh
|
|
#
|
|
# Standard startup script for onboard sensor drivers.
|
|
#
|
|
|
|
# Configure all I2C buses to 100 KHz as they
|
|
# are all external or slow
|
|
fmu i2c 1 100000
|
|
fmu i2c 2 100000
|
|
|
|
if ms5611 -s start
|
|
then
|
|
fi
|
|
|
|
# Blacksheep telemetry
|
|
if bst start
|
|
then
|
|
fi
|
|
|
|
if adc start
|
|
then
|
|
fi
|
|
|
|
if sdp3x_airspeed start -X
|
|
then
|
|
fi
|
|
|
|
if ms5525_airspeed start -X
|
|
then
|
|
fi
|
|
|
|
if ms4525_airspeed start -X
|
|
then
|
|
fi
|
|
|
|
if ets_airspeed start -X
|
|
then
|
|
fi
|
|
|
|
if sf1xx start
|
|
then
|
|
fi
|
|
|
|
# Wait 20 ms for sensors (because we need to wait for the HRT and work queue callbacks to fire)
|
|
usleep 20000
|
|
if sensors start
|
|
then
|
|
fi
|