Ensure that AUX mixer is loaded when 2nd bank is present

This commit is contained in:
Lorenz Meier
2021-03-09 16:28:55 +01:00
parent 38f306908d
commit 891b231215
3 changed files with 5 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ fi
# initialize script variables # initialize script variables
set AUX_MODE none set AUX_MODE none
set AUX_BANK2 none
set IO_PRESENT no set IO_PRESENT no
set MAV_TYPE none set MAV_TYPE none
set MIXER none set MIXER none

View File

@@ -30,7 +30,7 @@ then
fi fi
# USE_IO is set to 'no' for all boards w/o px4io driver or SYS_USE_IO disabled # USE_IO is set to 'no' for all boards w/o px4io driver or SYS_USE_IO disabled
if [ $USE_IO = no ] if [ $USE_IO = no -a $AUX_BANK2 = none ]
then then
set AUX_MODE none set AUX_MODE none
fi fi

View File

@@ -3,6 +3,9 @@
# board specific defaults # board specific defaults
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Enables the 2nd bank of mixers
set AUX_BANK2 yes
param set-default BAT_V_DIV 18 param set-default BAT_V_DIV 18
param set-default BAT1_V_DIV 18 param set-default BAT1_V_DIV 18
param set-default BAT2_V_DIV 18 param set-default BAT2_V_DIV 18