Browse Source

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

release/1.12
Lorenz Meier 4 years ago
parent
commit
891b231215
  1. 1
      ROMFS/px4fmu_common/init.d-posix/rcS
  2. 2
      ROMFS/px4fmu_common/init.d/rc.interface
  3. 3
      boards/cuav/x7pro/init/rc.board_defaults

1
ROMFS/px4fmu_common/init.d-posix/rcS

@ -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

2
ROMFS/px4fmu_common/init.d/rc.interface

@ -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

3
boards/cuav/x7pro/init/rc.board_defaults

@ -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

Loading…
Cancel
Save