aboutsummaryrefslogtreecommitdiff
path: root/ROMFS
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-12-09 19:18:42 +0100
committerLorenz Meier <lm@inf.ethz.ch>2012-12-09 19:18:42 +0100
commit0386a4205b9c9017444e5922c9fb89650a191552 (patch)
treef1b7054cf0b707e0e95dc44cdb34bfffa0b5cda5 /ROMFS
parent154035279fbfbe14be208d5ec957089f11f6447d (diff)
downloadpx4-firmware-0386a4205b9c9017444e5922c9fb89650a191552.tar.gz
px4-firmware-0386a4205b9c9017444e5922c9fb89650a191552.tar.bz2
px4-firmware-0386a4205b9c9017444e5922c9fb89650a191552.zip
Updated PX4IOAR start script
Diffstat (limited to 'ROMFS')
-rw-r--r--ROMFS/scripts/rc.PX4IOAR34
1 files changed, 19 insertions, 15 deletions
diff --git a/ROMFS/scripts/rc.PX4IOAR b/ROMFS/scripts/rc.PX4IOAR
index d23f03417..640cdf541 100644
--- a/ROMFS/scripts/rc.PX4IOAR
+++ b/ROMFS/scripts/rc.PX4IOAR
@@ -3,8 +3,12 @@
# Flight startup script for PX4FMU on PX4IOAR carrier board.
#
+# Disable the USB interface
set USB no
+# Disable autostarting other apps
+set MODE ardrone
+
echo "[init] doing PX4IOAR startup..."
#
@@ -13,27 +17,27 @@ echo "[init] doing PX4IOAR startup..."
uorb start
#
-# Init the EEPROM
+# Load microSD params
#
-echo "[init] eeprom"
-eeprom start
-if [ -f /eeprom/parameters ]
+echo "[init] loading microSD params"
+param select /fs/microsd/parameters
+if [ -f /fs/microsd/parameters ]
then
- param load
+ param load /fs/microsd/parameters
fi
#
-# Start the sensors.
-#
-sh /etc/init.d/rc.sensors
-
-#
# Start MAVLink
#
mavlink start -d /dev/ttyS0 -b 57600
usleep 5000
#
+# Start the sensors and test them.
+#
+sh /etc/init.d/rc.sensors
+
+#
# Start the commander.
#
commander start
@@ -56,13 +60,13 @@ multirotor_att_control start
#
# Fire up the AR.Drone interface.
#
-ardrone_interface start
-
+ardrone_interface start -d /dev/ttyS1
+
#
-# Start logging to microSD if we can
+# Start logging
#
-#sh /etc/init.d/rc.logging
-
+#sdlog start
+
#
# Start GPS capture
#