From d5af511f8da247fa75ed48b537445302d3946034 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 30 Oct 2012 07:19:58 +0100 Subject: Updated script to current syntax --- ROMFS/scripts/rc.FMU_quad_x | 2 +- ROMFS/scripts/rc.PX4IO | 27 ++++++++++++++------------- ROMFS/scripts/rc.PX4IOAR | 4 ++-- ROMFS/scripts/rc.logging | 3 +-- 4 files changed, 18 insertions(+), 18 deletions(-) (limited to 'ROMFS') diff --git a/ROMFS/scripts/rc.FMU_quad_x b/ROMFS/scripts/rc.FMU_quad_x index e9f07b4a2..d9c9a8457 100644 --- a/ROMFS/scripts/rc.FMU_quad_x +++ b/ROMFS/scripts/rc.FMU_quad_x @@ -29,7 +29,7 @@ echo "[init] commander" commander start echo "[init] attitude control" -attitude_estimator_bm & +attitude_estimator_ekf start multirotor_att_control start echo "[init] starting PWM output" 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 @@ -10,6 +10,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. # @@ -23,17 +33,12 @@ mavlink start -d /dev/ttyS0 -b 57600 # # Start the commander. # -# XXX this should be ' start'. -# -commander & +commander start # # Start the attitude estimator # -# XXX this should be ' 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 ' 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 diff --git a/ROMFS/scripts/rc.PX4IOAR b/ROMFS/scripts/rc.PX4IOAR index 382d8e25c..d23f03417 100644 --- a/ROMFS/scripts/rc.PX4IOAR +++ b/ROMFS/scripts/rc.PX4IOAR @@ -59,9 +59,9 @@ multirotor_att_control start ardrone_interface start # -# Start logging +# Start logging to microSD if we can # -#sdlog start +#sh /etc/init.d/rc.logging # # Start GPS capture diff --git a/ROMFS/scripts/rc.logging b/ROMFS/scripts/rc.logging index cbc303dab..09c2d00d1 100644 --- a/ROMFS/scripts/rc.logging +++ b/ROMFS/scripts/rc.logging @@ -5,6 +5,5 @@ if [ -d /fs/microsd ] then - # XXX this should be ' start'. - # sdlog & + sdlog start fi -- cgit v1.2.3