aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-01-19 10:45:38 +0100
committerAnton Babushkin <anton.babushkin@me.com>2014-01-19 10:45:38 +0100
commit23cc0684ba3cc5f2c3c18e7677da57c9b263583f (patch)
tree532d02682eeb851a43afcb20cf55886fbc626cae
parent42f4f459795476c2e695c6a151bd6ccc349658f0 (diff)
downloadpx4-firmware-23cc0684ba3cc5f2c3c18e7677da57c9b263583f.tar.gz
px4-firmware-23cc0684ba3cc5f2c3c18e7677da57c9b263583f.tar.bz2
px4-firmware-23cc0684ba3cc5f2c3c18e7677da57c9b263583f.zip
rcS: MAV_TYPE bug fixed, use 8 PWM outputs on HIL fake output
-rw-r--r--ROMFS/px4fmu_common/init.d/rcS8
1 files changed, 4 insertions, 4 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS
index c56527525..45dec5ba6 100644
--- a/ROMFS/px4fmu_common/init.d/rcS
+++ b/ROMFS/px4fmu_common/init.d/rcS
@@ -323,7 +323,7 @@ then
if [ $OUTPUT_MODE == hil ]
then
echo "[init] Use HIL as primary output"
- if hil mode_pwm
+ if hil mode_port2_pwm8
then
echo "[init] HIL output started"
else
@@ -474,15 +474,15 @@ then
# Use mixer to detect vehicle type
if [ $MIXER == FMU_hex_x -o $MIXER == FMU_hex_+ ]
then
- param set MAV_TYPE 13
+ set MAV_TYPE 13
fi
if [ $MIXER == FMU_octo_x -o $MIXER == FMU_octo_+ ]
then
- param set MAV_TYPE 14
+ set MAV_TYPE 14
fi
if [ $MIXER == FMU_octo_cox ]
then
- param set MAV_TYPE 14
+ set MAV_TYPE 14
fi
fi