aboutsummaryrefslogtreecommitdiff
path: root/ROMFS
diff options
context:
space:
mode:
Diffstat (limited to 'ROMFS')
-rw-r--r--ROMFS/px4fmu_common/init.d/10_io_f33027
-rwxr-xr-xROMFS/px4fmu_common/init.d/rcS13
2 files changed, 25 insertions, 15 deletions
diff --git a/ROMFS/px4fmu_common/init.d/10_io_f330 b/ROMFS/px4fmu_common/init.d/10_io_f330
index b3fb02757..48636292c 100644
--- a/ROMFS/px4fmu_common/init.d/10_io_f330
+++ b/ROMFS/px4fmu_common/init.d/10_io_f330
@@ -44,12 +44,22 @@ param set MAV_TYPE 2
#
mavlink start
usleep 5000
+
+#
+# Start the commander (depends on orb, mavlink)
+#
+commander start
#
# Start PX4IO interface (depends on orb, commander)
#
-px4io start
-pwm -u 400 -m 0xff
+if px4io start
+then
+ pwm -u 400 -m 0xff
+else
+ # SOS
+ tone_alarm 6
+fi
#
# Allow PX4IO to recover from midair restarts.
@@ -77,11 +87,6 @@ mixer load /dev/pwm_output /etc/mixers/FMU_quad_x.mix
# Start the sensors (depends on orb, px4io)
#
sh /etc/init.d/rc.sensors
-
-#
-# Start the commander (depends on orb, mavlink)
-#
-commander start
#
# Start GPS interface (depends on orb)
@@ -102,15 +107,7 @@ if [ $BOARD == fmuv1 ]
then
px4io limit 200
sdlog2 start -r 50 -a -b 16
- if blinkm start
- then
- blinkm systemstate
- fi
else
px4io limit 400
sdlog2 start -r 200 -a -b 16
- if rgbled start
- then
- #rgbled systemstate
- fi
fi
diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS
index e06d90d1c..bb78b6a65 100755
--- a/ROMFS/px4fmu_common/init.d/rcS
+++ b/ROMFS/px4fmu_common/init.d/rcS
@@ -91,6 +91,19 @@ else
fi
#
+# Start system state indicator
+#
+if rgbled start
+then
+ echo "Using external RGB Led"
+else
+ if blinkm start
+ then
+ blinkm systemstate
+ fi
+fi
+
+#
# Check if PX4IO Firmware should be upgraded (from Andrew Tridgell)
#
if [ -f /fs/microsd/px4io.bin ]