You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
566 B

#!nsh
#
# USB MAVLink start
#
echo "Starting MAVLink on this USB console"
# Stop tone alarm
tone_alarm stop
#
# Check for UORB
#
if uorb start
then
echo "uORB started"
fi
# Tell MAVLink that this link is "fast"
if mavlink stop
then
echo "stopped other MAVLink instance"
fi
mavlink start -b 230400 -d /dev/ttyACM0
# Stop commander
if commander stop
then
echo "Commander stopped"
fi
sleep 1
12 years ago
# Start the commander
if commander start
then
12 years ago
echo "Commander started"
fi
echo "MAVLink started, exiting shell.."
# Exit shell to make it available to MAVLink
exit