From 70a85739ccf2df6f032093ee9b0f03666d5a241c Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 21 Mar 2013 10:14:34 +0100 Subject: Added startup scripts useful when running USB consoles, made MAVLink aware that /dev/console is a hint for running on USB (magic strings, magic strings) --- ROMFS/scripts/rc.usb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ROMFS/scripts/rc.usb (limited to 'ROMFS/scripts/rc.usb') diff --git a/ROMFS/scripts/rc.usb b/ROMFS/scripts/rc.usb new file mode 100644 index 000000000..9031b38a2 --- /dev/null +++ b/ROMFS/scripts/rc.usb @@ -0,0 +1,14 @@ +#!nsh +# +# USB MAVLink start +# + +echo "[testing] doing production test.." + +# Tell MAVLink that this link is "fast" +mavlink start -b 230400 -d /dev/console + +# Exit shell to make it available to MAVLink +exit + +echo "[testing] testing done" -- cgit v1.2.3