Browse Source

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.
sbg
Beat Küng 8 years ago committed by Lorenz Meier
parent
commit
69e8213b37
  1. 13
      ROMFS/px4fmu_common/init.d/rcS

13
ROMFS/px4fmu_common/init.d/rcS

@ -264,6 +264,19 @@ then @@ -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

Loading…
Cancel
Save