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 From 4ae4a29a17b152c87f59f06b8b50761b7a3610c7 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Fri, 22 Mar 2013 13:17:04 +0100 Subject: Fixed copy & paste documentation lies --- ROMFS/scripts/rc.usb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ROMFS/scripts/rc.usb') diff --git a/ROMFS/scripts/rc.usb b/ROMFS/scripts/rc.usb index 9031b38a2..31af3991a 100644 --- a/ROMFS/scripts/rc.usb +++ b/ROMFS/scripts/rc.usb @@ -3,12 +3,12 @@ # USB MAVLink start # -echo "[testing] doing production test.." +echo "Starting MAVLink on this USB console" # Tell MAVLink that this link is "fast" mavlink start -b 230400 -d /dev/console +echo "MAVLink started, exiting shell.." + # Exit shell to make it available to MAVLink exit - -echo "[testing] testing done" -- cgit v1.2.3