px4-firmware/ROMFS/px4fmu_common/init.d/rc.usb

40 lines
582 B
Plaintext
Raw Normal View History

#!nsh
#
# USB MAVLink start
#
2013-03-22 09:17:04 -03:00
echo "Starting MAVLink on this USB console"
# Stop tone alarm
tone_alarm stop
# Tell MAVLink that this link is "fast"
if mavlink stop
then
echo "stopped other MAVLink instance"
fi
mavlink start -b 230400 -d /dev/ttyACM0
# Start the commander
commander start
# Start sensors
sh /etc/init.d/rc.sensors
# Start one of the estimators
if attitude_estimator_ekf start
then
echo "estimating attitude"
fi
# Start GPS
if gps start
then
echo "GPS started"
fi
2013-03-22 09:17:04 -03:00
echo "MAVLink started, exiting shell.."
# Exit shell to make it available to MAVLink
exit