aboutsummaryrefslogtreecommitdiff
path: root/ROMFS
diff options
context:
space:
mode:
authorTrent Lukaczyk <aerialhedgehog@gmail.com>2015-02-05 20:19:04 -0800
committerTrent Lukaczyk <aerialhedgehog@gmail.com>2015-02-05 20:19:04 -0800
commit531eaa231486c6af46394f6842d420447cb0ee0e (patch)
treee7a90d8c50d700a2b7aff05c5a545162810d4967 /ROMFS
parent6798aee13a5bb885966960cdba6ab57b14278ab0 (diff)
parent7e6198b3dd517e1158431c8344c5912a6c28b363 (diff)
downloadpx4-firmware-531eaa231486c6af46394f6842d420447cb0ee0e.tar.gz
px4-firmware-531eaa231486c6af46394f6842d420447cb0ee0e.tar.bz2
px4-firmware-531eaa231486c6af46394f6842d420447cb0ee0e.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'ROMFS')
-rw-r--r--ROMFS/px4fmu_common/init.d/rc.mc_apps15
-rw-r--r--ROMFS/px4fmu_test/init.d/rcS14
2 files changed, 22 insertions, 7 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rc.mc_apps b/ROMFS/px4fmu_common/init.d/rc.mc_apps
index 033b3b640..2ecc104df 100644
--- a/ROMFS/px4fmu_common/init.d/rc.mc_apps
+++ b/ROMFS/px4fmu_common/init.d/rc.mc_apps
@@ -8,8 +8,19 @@ attitude_estimator_ekf start
#ekf_att_pos_estimator start
position_estimator_inav start
-mc_att_control start
-mc_pos_control start
+if mc_att_control start
+then
+else
+ # try the multiplatform version
+ mc_att_control_m start
+fi
+
+if mc_pos_control start
+then
+else
+ # try the multiplatform version
+ mc_pos_control_m start
+fi
#
# Start Land Detector
diff --git a/ROMFS/px4fmu_test/init.d/rcS b/ROMFS/px4fmu_test/init.d/rcS
index 4b9a9b68a..3d1c4a907 100644
--- a/ROMFS/px4fmu_test/init.d/rcS
+++ b/ROMFS/px4fmu_test/init.d/rcS
@@ -2,6 +2,8 @@
#
# PX4FMU startup script for test hackery.
#
+set unit_test_failure 0
+
uorb start
if sercon
@@ -41,6 +43,9 @@ fi
if px4io start
then
echo "PX4IO OK"
+else
+ set unit_test_failure 1
+ set unit_test_failure_list "${unit_test_failure_list} px4io_start"
fi
if px4io checkcrc $io_file
@@ -51,7 +56,6 @@ else
tone_alarm MBABGP
if px4io forceupdate 14662 $io_file
then
- usleep 500000
if px4io start
then
echo "PX4IO restart OK"
@@ -59,12 +63,14 @@ else
else
echo "PX4IO restart failed"
tone_alarm MNGGG
- sleep 5
- reboot
+ set unit_test_failure 1
+ set unit_test_failure_list "${unit_test_failure_list} px4io_flash"
fi
else
echo "PX4IO update failed"
tone_alarm MNGGG
+ set unit_test_failure 1
+ set unit_test_failure_list "${unit_test_failure_list} px4io_flash"
fi
fi
@@ -81,8 +87,6 @@ fi
# Add new unit tests using the same pattern as below.
#
-set unit_test_failure 0
-
if mavlink_tests
then
else