aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/px4fmu_common/init.d/31_io_phantom
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2013-11-05 16:59:34 +0100
committerJulian Oes <julian@oes.ch>2013-11-05 16:59:34 +0100
commit857c3d2efd49085dfd28827b06d96776340e5a09 (patch)
treee0af3b417227d15398d649aabf26479b9631aa52 /ROMFS/px4fmu_common/init.d/31_io_phantom
parentd3b267c06e53aaf119b66717ac33e78834ea0d69 (diff)
downloadpx4-firmware-857c3d2efd49085dfd28827b06d96776340e5a09.tar.gz
px4-firmware-857c3d2efd49085dfd28827b06d96776340e5a09.tar.bz2
px4-firmware-857c3d2efd49085dfd28827b06d96776340e5a09.zip
Startup scripts: Corrected cases where commander was not started, updated several outdated scripts
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/31_io_phantom')
-rw-r--r--ROMFS/px4fmu_common/init.d/31_io_phantom38
1 files changed, 12 insertions, 26 deletions
diff --git a/ROMFS/px4fmu_common/init.d/31_io_phantom b/ROMFS/px4fmu_common/init.d/31_io_phantom
index 652833745..14607e2df 100644
--- a/ROMFS/px4fmu_common/init.d/31_io_phantom
+++ b/ROMFS/px4fmu_common/init.d/31_io_phantom
@@ -52,8 +52,6 @@ then
# Start MAVLink (depends on orb)
mavlink start
- commander start
-
sh /etc/init.d/rc.io
# Limit to 100 Hz updates and (implicit) 50 Hz PWM
px4io limit 100
@@ -61,41 +59,29 @@ else
# Start MAVLink (on UART1 / ttyS0)
mavlink start -d /dev/ttyS0
- commander start
-
fmu mode_pwm
param set BAT_V_SCALING 0.004593
set EXIT_ON_END yes
fi
-
-#
-# Start the sensors and test them.
-#
-sh /etc/init.d/rc.sensors
#
-# Start logging (depends on sensors)
+# Load mixer and start controllers (depends on px4io)
#
-sh /etc/init.d/rc.logging
+if [ -f /fs/microsd/etc/mixers/FMU_Q.mix ]
+then
+ echo "Using /fs/microsd/etc/mixers/FMU_Q.mix"
+ mixer load /dev/pwm_output /fs/microsd/etc/mixers/FMU_Q.mix
+else
+ echo "Using /etc/mixers/FMU_Q.mix"
+ mixer load /dev/pwm_output /etc/mixers/FMU_Q.mix
+fi
#
-# Start GPS interface (depends on orb)
+Start common fixedwing apps
#
-gps start
-
-#
-# Start the attitude and position estimator
-#
-att_pos_estimator_ekf start
-
-#
-# Load mixer and start controllers (depends on px4io)
-#
-mixer load /dev/pwm_output /etc/mixers/FMU_Q.mix
-fw_att_control start
-fw_pos_control_l1 start
+sh /etc/init.d/rc.fixedwing
if [ $EXIT_ON_END == yes ]
then
exit
-fi
+fi \ No newline at end of file