Once you've performed the necessary resource remapping commands to assign the extra motor functions (e.g. M5, and M6) to alternative pads on your flight controller, you can then set up custom mixer rules to tell Betaflight what to do with the additional motors.
However, if one of the predefined mixer types works for your build, you can just load it using the Betaflight Configurator or via the CLI by sending the command
mmix load <name> where
<name> is one of the mixer types from the link above.
Otherwise, you'll need to configure your own mixer rules. Following the instructions from the Betaflight Wiki, you'll need to use the CLI in the Betaflight Configurator to formulate and send
- First, you'll need to send
mixer custom to enable custom mixing.
- Send the
mmix reset command to remove any existing mixer rules.
- For each of the motors you need (starting with
M1 and ending with
M6 for your hexacopter) send an
mmix command with the following space-separated parameters:
- Motor number for the rule (in the range 0-5, so subtract one from the M motor port number).
- Number from 0.0 to 1.0 indicating how much throttle should be mixed into this motor. If this motor shouldn't be affected by the throttle, enter 0.0.
- Number from -1.0 to 1.0 indicating how much roll should be mixed into this motor, where positive numbers mean that a roll command over 1500µs should increase the motor's power and vice versa. If this motor shouldn't be affected by the roll axis, enter 0.0.
- Number from -1.0 to 1.0 indicating how much pitch should be mixed into this motor. This value obeys the same conventions as the roll axis parameter.
- Number from -1.0 to 1.0 indicating how much yaw should be mixed into this motor. This value obeys the same conventions as the roll axis parameter.
- An example
mmix command is:
mmix 0 1.0 0.0 -1.0 -1.0
- Remember to send the
save command to save your new mixer configuration.
This is all quite confusing, so here's an example from the same Betaflight Wiki page showing what the mixer commands would be like to use the
M5 ports if te
M4 port were broken on your flight controller.
mmix 0 1.0, -1.0, 1.0, -1.0
mmix 1 1.0, -1.0, -1.0, 1.0
mmix 2 1.0, 1.0, 1.0, 1.0
mmix 3 1.0, 0.0, 0.0, 0.0
mmix 4 1.0, 1.0, -1.0, -1.0