aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/px4fmu_common
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2013-11-05 19:56:33 +0100
committerJulian Oes <julian@oes.ch>2013-11-05 19:56:33 +0100
commit4502c285eb8b284b7c08666b6d0e3e81035bace3 (patch)
tree717f85b09691bbde7eba6b209d39429899696b0e /ROMFS/px4fmu_common
parent857c3d2efd49085dfd28827b06d96776340e5a09 (diff)
downloadpx4-firmware-4502c285eb8b284b7c08666b6d0e3e81035bace3.tar.gz
px4-firmware-4502c285eb8b284b7c08666b6d0e3e81035bace3.tar.bz2
px4-firmware-4502c285eb8b284b7c08666b6d0e3e81035bace3.zip
Startup scripts: Start the commander early and let it try to open the mavlink_fd with 20Hz
Diffstat (limited to 'ROMFS/px4fmu_common')
-rw-r--r--ROMFS/px4fmu_common/init.d/rc.fixedwing5
-rw-r--r--ROMFS/px4fmu_common/init.d/rc.multirotor5
-rwxr-xr-xROMFS/px4fmu_common/init.d/rcS5
3 files changed, 5 insertions, 10 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rc.fixedwing b/ROMFS/px4fmu_common/init.d/rc.fixedwing
index 79e34a3b9..f02851006 100644
--- a/ROMFS/px4fmu_common/init.d/rc.fixedwing
+++ b/ROMFS/px4fmu_common/init.d/rc.fixedwing
@@ -4,11 +4,6 @@
#
#
-# Start the Commander
-#
-commander start
-
-#
# Start the sensors and test them.
#
sh /etc/init.d/rc.sensors
diff --git a/ROMFS/px4fmu_common/init.d/rc.multirotor b/ROMFS/px4fmu_common/init.d/rc.multirotor
index 6bae99175..bc550ac5a 100644
--- a/ROMFS/px4fmu_common/init.d/rc.multirotor
+++ b/ROMFS/px4fmu_common/init.d/rc.multirotor
@@ -4,11 +4,6 @@
#
#
-# Start the Commander
-#
-commander start
-
-#
# Start the sensors and test them.
#
sh /etc/init.d/rc.sensors
diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS
index cff8446a6..d8b5cb608 100755
--- a/ROMFS/px4fmu_common/init.d/rcS
+++ b/ROMFS/px4fmu_common/init.d/rcS
@@ -105,6 +105,11 @@ then
blinkm systemstate
fi
fi
+
+ #
+ # Start the Commander (needs to be this early for in-air-restarts)
+ #
+ commander start
if param compare SYS_AUTOSTART 1000
then