rcS: set MIXER_AUX to mount if vmount enabled and output is AUX

This automatically selects the mount aux mixer if mount is enabled via
parameters. A user can customize this by adding a file
 etc/mixers/mount.aux.mix
to the SD card.
This commit is contained in:
Beat Küng
2017-04-24 14:44:36 +02:00
committed by Lorenz Meier
parent 3f3ac414e3
commit 69e8213b37

View File

@@ -264,6 +264,19 @@ then
fi
unset MODE
#
# If mount (gimbal) control is enabled and output mode is AUX, set the aux
# mixer to mount (override the airframe-specific MIXER_AUX setting)
#
if param compare MNT_MODE_IN -1
then
else
if param compare MNT_MODE_OUT 0
then
set MIXER_AUX mount
fi
fi
#
# Wipe incompatible settings for boards not having two outputs
if ver hwcmp PX4FMU_V4