aboutsummaryrefslogtreecommitdiff
path: root/ROMFS
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-02-14 20:33:20 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-02-15 19:52:01 +0100
commiteb28aa6cfe3450b0ea7454ef193f58f62c798e72 (patch)
tree167c1f3aad2572ad892aea7e87b3c1734e7d4eed /ROMFS
parentccac7cbd78db2fec1ca20b48d06bd86e66f47d91 (diff)
downloadpx4-firmware-eb28aa6cfe3450b0ea7454ef193f58f62c798e72.tar.gz
px4-firmware-eb28aa6cfe3450b0ea7454ef193f58f62c798e72.tar.bz2
px4-firmware-eb28aa6cfe3450b0ea7454ef193f58f62c798e72.zip
Auto-update IO also when safety off
Diffstat (limited to 'ROMFS')
-rw-r--r--ROMFS/px4fmu_common/init.d/rcS10
1 files changed, 8 insertions, 2 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS
index 1663a2ab3..8b26bbe7a 100644
--- a/ROMFS/px4fmu_common/init.d/rcS
+++ b/ROMFS/px4fmu_common/init.d/rcS
@@ -23,6 +23,7 @@ set TUNE_ERR ML<<CP4CP4CP4CP4CP4
#
# Try to mount the microSD card.
#
+# REBOOTWORK this needs to start after the flight control loop
echo "[i] Looking for microSD..."
if mount -t vfat /dev/mmcsd0 /fs/microsd
then
@@ -51,6 +52,7 @@ unset FRC
if [ $MODE == autostart ]
then
# Try to get an USB console
+ # REBOOTWORK this needs to start after the flight control loop
nshterm /dev/ttyACM0 &
#
@@ -186,7 +188,7 @@ then
set IO_FILE /etc/extras/px4io-v1_default.bin
fi
- if px4io checkcrc $IO_FILE
+ if px4io checkcrc ${IO_FILE}
then
echo "PX4IO CRC OK" >> $LOG_FILE
@@ -196,7 +198,10 @@ then
tone_alarm MLL32CP8MB
- if px4io forceupdate 14662 $IO_FILE
+ px4io start
+ px4io safety_on
+
+ if px4io forceupdate 14662 ${IO_FILE}
then
usleep 500000
if px4io checkcrc $IO_FILE
@@ -265,6 +270,7 @@ then
unset HIL
# waypoint storage
+ # REBOOTWORK this needs to start in parallel
if dataman start
then
fi