aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/px4fmu_common/init.d/rcS
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-11-22 12:47:08 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-11-22 12:47:08 +0100
commitf3a224e30d8a70418541a6185ce5765b37745a7a (patch)
tree938bd443fc9f53cdbea3294d2e702e72ddd8493c /ROMFS/px4fmu_common/init.d/rcS
parent821c06f7cc58b50afe80442ee2258bf99cbe1fd2 (diff)
parent685d3965a81b3f6a1ada4aa8bf9ebdd16b029c58 (diff)
downloadpx4-firmware-f3a224e30d8a70418541a6185ce5765b37745a7a.tar.gz
px4-firmware-f3a224e30d8a70418541a6185ce5765b37745a7a.tar.bz2
px4-firmware-f3a224e30d8a70418541a6185ce5765b37745a7a.zip
Merged master
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/rcS')
-rw-r--r--ROMFS/px4fmu_common/init.d/rcS24
1 files changed, 3 insertions, 21 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS
index fa5e8bf7c..e2691ab58 100644
--- a/ROMFS/px4fmu_common/init.d/rcS
+++ b/ROMFS/px4fmu_common/init.d/rcS
@@ -137,9 +137,7 @@ then
#
if param compare SYS_AUTOCONFIG 1
then
- # We can't be sure the defaults haven't changed, so
- # if someone requests a re-configuration, we do it
- # cleanly from scratch (except autostart / autoconfig)
+ # Wipe out params
param reset_nostart
set DO_AUTOCONFIG yes
else
@@ -202,12 +200,10 @@ then
if px4io checkcrc $IO_FILE
then
- echo "[init] PX4IO CRC OK"
echo "PX4IO CRC OK" >> $LOG_FILE
set IO_PRESENT yes
else
- echo "[init] Trying to update"
echo "PX4IO Trying to update" >> $LOG_FILE
tone_alarm MLL32CP8MB
@@ -217,18 +213,15 @@ then
usleep 500000
if px4io checkcrc $IO_FILE
then
- echo "[init] PX4IO CRC OK, update successful"
echo "PX4IO CRC OK after updating" >> $LOG_FILE
tone_alarm MLL8CDE
set IO_PRESENT yes
else
- echo "[init] ERROR: PX4IO update failed"
echo "PX4IO update failed" >> $LOG_FILE
tone_alarm $TUNE_OUT_ERROR
fi
else
- echo "[init] ERROR: PX4IO update failed"
echo "PX4IO update failed" >> $LOG_FILE
tone_alarm $TUNE_OUT_ERROR
fi
@@ -281,16 +274,12 @@ then
fi
fi
- #
- # Start the datamanager (and do not abort boot if it fails)
- #
+ # waypoint storage
if dataman start
then
fi
- #
- # Start the Commander (needs to be this early for in-air-restarts)
- #
+ # Needs to be this early for in-air-restarts
commander start
#
@@ -424,9 +413,6 @@ then
fi
fi
- #
- # MAVLink
- #
if [ $MAVLINK_FLAGS == default ]
then
# Normal mode, use baudrate 57600 (default) and data rate 1000 bytes/s
@@ -461,10 +447,6 @@ then
# Sensors, Logging, GPS
#
sh /etc/init.d/rc.sensors
-
- #
- # Start logging in all modes, including HIL
- #
sh /etc/init.d/rc.logging
if [ $GPS == yes ]