mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 14:40:35 +08:00
39 lines
518 B
Plaintext
39 lines
518 B
Plaintext
#!nsh
|
|
#
|
|
# Standard startup script for PX4FMU onboard sensor drivers.
|
|
#
|
|
|
|
#
|
|
# Start sensor drivers here.
|
|
#
|
|
|
|
if ms5611 start
|
|
then
|
|
else
|
|
echo "[init] BARO initialization FAILED. REBOOTING"
|
|
reboot
|
|
fi
|
|
|
|
if mpu6000 start
|
|
then
|
|
else
|
|
echo "[init] ACCEL/GYRO initialization FAILED. REBOOTING"
|
|
reboot
|
|
fi
|
|
|
|
if hmc5883 start
|
|
then
|
|
else
|
|
echo "[init] MAG initialization FAILED. REBOOTING"
|
|
reboot
|
|
fi
|
|
|
|
#
|
|
# Start the sensor collection task.
|
|
#
|
|
if sensors start
|
|
then
|
|
else
|
|
echo "[init] sensor initialization FAILED. REBOOTING"
|
|
reboot
|
|
fi |