From 69e8213b3789427fa94103af13b83bbff80c8878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Mon, 24 Apr 2017 14:44:36 +0200 Subject: [PATCH] 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. --- ROMFS/px4fmu_common/init.d/rcS | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 1da00c9e2c..76ff4a387b 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -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