aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/scripts/rc.PX4IO
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-10-30 07:19:58 +0100
committerLorenz Meier <lm@inf.ethz.ch>2012-10-30 07:19:58 +0100
commitd5af511f8da247fa75ed48b537445302d3946034 (patch)
treeeb780b4ca1f478e1452d0ccc67acaf2b04b914db /ROMFS/scripts/rc.PX4IO
parent574eb96a2ebafeb03d2933c68cb7f7b60269601a (diff)
downloadpx4-firmware-d5af511f8da247fa75ed48b537445302d3946034.tar.gz
px4-firmware-d5af511f8da247fa75ed48b537445302d3946034.tar.bz2
px4-firmware-d5af511f8da247fa75ed48b537445302d3946034.zip
Updated script to current syntax
Diffstat (limited to 'ROMFS/scripts/rc.PX4IO')
-rw-r--r--ROMFS/scripts/rc.PX4IO27
1 files changed, 14 insertions, 13 deletions
diff --git a/ROMFS/scripts/rc.PX4IO b/ROMFS/scripts/rc.PX4IO
index 13c759db2..b5a087433 100644
--- a/ROMFS/scripts/rc.PX4IO
+++ b/ROMFS/scripts/rc.PX4IO
@@ -11,6 +11,16 @@ echo "[init] doing PX4IO startup..."
uorb start
#
+# Init the EEPROM
+#
+echo "[init] eeprom"
+eeprom start
+if [ -f /eeprom/parameters ]
+then
+ param load
+fi
+
+#
# Start the sensors.
#
sh /etc/init.d/rc.sensors
@@ -23,17 +33,12 @@ mavlink start -d /dev/ttyS0 -b 57600
#
# Start the commander.
#
-# XXX this should be '<command> start'.
-#
-commander &
+commander start
#
# Start the attitude estimator
#
-# XXX this should be '<command> start'.
-#
-attitude_estimator_bm &
-#position_estimator &
+attitude_estimator_ekf start
#
# Configure PX4FMU for operation with PX4IO
@@ -45,9 +50,7 @@ px4fmu start
#
# Start the fixed-wing controller
#
-# XXX this should be '<command> start'.
-#
-fixedwing_control &
+fixedwing_control start
#
# Fire up the PX4IO interface.
@@ -57,9 +60,7 @@ px4io start
#
# Start looking for a GPS.
#
-# XXX this should not need to be backgrounded
-#
-gps -d /dev/ttyS3 -m all &
+gps start
#
# Start logging to microSD if we can