rcS: MAV_TYPE bug fixed, use 8 PWM outputs on HIL fake output

This commit is contained in:
Anton Babushkin
2014-01-19 10:45:38 +01:00
parent 42f4f45979
commit 23cc0684ba
+4 -4
View File
@@ -323,7 +323,7 @@ then
if [ $OUTPUT_MODE == hil ] if [ $OUTPUT_MODE == hil ]
then then
echo "[init] Use HIL as primary output" echo "[init] Use HIL as primary output"
if hil mode_pwm if hil mode_port2_pwm8
then then
echo "[init] HIL output started" echo "[init] HIL output started"
else else
@@ -474,15 +474,15 @@ then
# Use mixer to detect vehicle type # Use mixer to detect vehicle type
if [ $MIXER == FMU_hex_x -o $MIXER == FMU_hex_+ ] if [ $MIXER == FMU_hex_x -o $MIXER == FMU_hex_+ ]
then then
param set MAV_TYPE 13 set MAV_TYPE 13
fi fi
if [ $MIXER == FMU_octo_x -o $MIXER == FMU_octo_+ ] if [ $MIXER == FMU_octo_x -o $MIXER == FMU_octo_+ ]
then then
param set MAV_TYPE 14 set MAV_TYPE 14
fi fi
if [ $MIXER == FMU_octo_cox ] if [ $MIXER == FMU_octo_cox ]
then then
param set MAV_TYPE 14 set MAV_TYPE 14
fi fi
fi fi