mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 19:07:45 +08:00
Simplified USB startup script
This commit is contained in:
@@ -15,29 +15,33 @@ then
|
|||||||
fi
|
fi
|
||||||
mavlink start -b 230400 -d /dev/ttyACM0
|
mavlink start -b 230400 -d /dev/ttyACM0
|
||||||
|
|
||||||
# Start the commander
|
if [ $MODE == autostart ]
|
||||||
commander start
|
|
||||||
|
|
||||||
# Start sensors
|
|
||||||
sh /etc/init.d/rc.sensors
|
|
||||||
|
|
||||||
# Start one of the estimators
|
|
||||||
if attitude_estimator_ekf status
|
|
||||||
then
|
then
|
||||||
|
|
||||||
|
# Start the commander
|
||||||
|
commander start
|
||||||
|
|
||||||
|
# Start sensors
|
||||||
|
sh /etc/init.d/rc.sensors
|
||||||
|
|
||||||
|
# Start one of the estimators
|
||||||
|
if attitude_estimator_ekf status
|
||||||
|
then
|
||||||
echo "multicopter att filter running"
|
echo "multicopter att filter running"
|
||||||
else
|
else
|
||||||
if att_pos_estimator_ekf status
|
if att_pos_estimator_ekf status
|
||||||
then
|
then
|
||||||
echo "fixedwing att filter running"
|
echo "fixedwing att filter running"
|
||||||
else
|
else
|
||||||
attitude_estimator_ekf start
|
attitude_estimator_ekf start
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start GPS
|
# Start GPS
|
||||||
if gps start
|
if gps start
|
||||||
then
|
then
|
||||||
echo "GPS started"
|
echo "GPS started"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "MAVLink started, exiting shell.."
|
echo "MAVLink started, exiting shell.."
|
||||||
|
|||||||
Reference in New Issue
Block a user