mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
rcS: MAV_TYPE bug fixed, use 8 PWM outputs on HIL fake output
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user