aboutsummaryrefslogtreecommitdiff
path: root/ROMFS
diff options
context:
space:
mode:
authorsjwilks <sjwilks@gmail.com>2013-01-06 04:19:22 -0800
committersjwilks <sjwilks@gmail.com>2013-01-06 04:19:22 -0800
commit659543f852d18197f68fafee5db5671567b74f4b (patch)
treede3e0c58272148c58217229c46033350913a7ee2 /ROMFS
parentec3d298720af06cd40184b3809555487e5df24d2 (diff)
parent06126d0d9e2a5d85363ebe3136d35b164f1fd966 (diff)
downloadpx4-firmware-659543f852d18197f68fafee5db5671567b74f4b.tar.gz
px4-firmware-659543f852d18197f68fafee5db5671567b74f4b.tar.bz2
px4-firmware-659543f852d18197f68fafee5db5671567b74f4b.zip
Merge pull request #96 from sjwilks/autostart-scripts
Updated PX4IO autostart script.
Diffstat (limited to 'ROMFS')
-rw-r--r--ROMFS/scripts/rc.PX4IO46
1 files changed, 22 insertions, 24 deletions
diff --git a/ROMFS/scripts/rc.PX4IO b/ROMFS/scripts/rc.PX4IO
index b5a087433..84e181a5a 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,26 @@ then
fi
#
+# Enable / connect to PX4IO
+#
+px4io start
+
+#
+# Load an appropriate mixer. FMU_pass.mix is a passthru mixer
+# which is good for testing. See ROMFS/mixers for a full list of mixers.
+#
+mixer load /dev/pwm_output /etc/mixers/FMU_pass.mix
+
+#
# 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 +50,24 @@ commander start
attitude_estimator_ekf start
#
-# Configure PX4FMU for operation with PX4IO
+# Start the attitude and position controller
#
-# XXX arguments?
-#
-px4fmu start
+fixedwing_att_control start
+fixedwing_pos_control start
#
-# Start the fixed-wing controller
-#
-fixedwing_control start
-
-#
-# Fire up the PX4IO interface.
-#
-px4io start
-
-#
-# Start looking for a GPS.
+# Start GPS capture. Comment this out if you do not have a GPS.
#
gps start
#
# Start logging to microSD if we can
-#
+#
sh /etc/init.d/rc.logging
#
# 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