aboutsummaryrefslogtreecommitdiff
path: root/ROMFS
diff options
context:
space:
mode:
authorSimon Wilks <sjwilks@gmail.com>2012-12-06 22:35:20 +0100
committerSimon Wilks <sjwilks@gmail.com>2012-12-06 22:35:20 +0100
commitc3038619a420359bd00e513a63fa15a135209872 (patch)
treedfd5d8907266b212fffbbd6f42adf9080692d95c /ROMFS
parent451ecc1bf4c310652ed8450ce0341bb148c66567 (diff)
downloadpx4-firmware-c3038619a420359bd00e513a63fa15a135209872.tar.gz
px4-firmware-c3038619a420359bd00e513a63fa15a135209872.tar.bz2
px4-firmware-c3038619a420359bd00e513a63fa15a135209872.zip
Updating the PX4IO rc script to the latest state.
Diffstat (limited to 'ROMFS')
-rw-r--r--ROMFS/scripts/rc.PX4IO45
1 files changed, 16 insertions, 29 deletions
diff --git a/ROMFS/scripts/rc.PX4IO b/ROMFS/scripts/rc.PX4IO
index b5a087433..3a5ccbc5c 100644
--- a/ROMFS/scripts/rc.PX4IO
+++ b/ROMFS/scripts/rc.PX4IO
@@ -1,12 +1,9 @@
#!nsh
-#
-# Flight startup script for PX4FMU with PX4IO carrier board.
-#
-echo "[init] doing PX4IO startup..."
+set USB no
#
-# Start the ORB
+# Start the object request broker
#
uorb start
@@ -21,14 +18,20 @@ then
fi
#
+# Enable / connect to PX4IO
+#
+px4io start
+
+#
# Start the sensors.
#
sh /etc/init.d/rc.sensors
#
-# Start MAVLink
+# Start MAVLink on UART1 (dev/ttyS0) at 57600 baud (CLI is now unusable)
#
mavlink start -d /dev/ttyS0 -b 57600
+usleep 5000
#
# Start the commander.
@@ -41,35 +44,19 @@ commander start
attitude_estimator_ekf start
#
-# Configure PX4FMU for operation with PX4IO
-#
-# XXX arguments?
-#
-px4fmu start
-
-#
-# Start the fixed-wing controller
-#
-fixedwing_control start
-
-#
-# Fire up the PX4IO interface.
-#
-px4io start
-
-#
-# Start looking for a GPS.
+# Start the attitude and position controller
#
-gps start
+fixedwing_att_control start
+fixedwing_pos_control start
#
-# Start logging to microSD if we can
+# Start GPS capture
#
-sh /etc/init.d/rc.logging
+#gps start
#
# startup is done; we don't want the shell because we
-# use the same UART for telemetry (dumb).
+# use the same UART for telemetry
#
-echo "[init] startup done, exiting."
+echo "[init] startup done"
exit