Motor mixing

Also known as: mixer

On this page 7

Motor mixing is the stage of drone flight control that converts the controller’s four axis demands (roll, pitch, yaw and throttle) into a separate output command for every motor. The component that performs this conversion is often simply called the mixer, and it is the bridge between abstract control math and the physical speed of each propeller.

In multirotor drones, no control surfaces exist, so every maneuver must be produced by changing motor speeds differentially. The mixer encodes the airframe geometry, the rotation direction of each propeller and the relative authority of each axis, which makes it one of the few parts of the control chain that must match the hardware exactly.

How the mixer turns axis demands into motor outputs

The mixer receives the outputs of the PID controllers for roll, pitch and yaw, plus the pilot’s throttle, and computes each motor command as a weighted sum of those four values. The weights form a mixing matrix with one row per motor and one column per axis, and the flight controller evaluates it on every loop iteration, typically at 1 to 8 kHz on modern firmware.

Roll and pitch work through differential thrust: speeding up the motors on one side and slowing those on the other creates a torque about the corresponding axis. Yaw works differently, through reaction torque. Clockwise and counterclockwise propellers each twist the frame in the opposite direction, so speeding up one rotation group and slowing the other produces a net yaw moment without changing total lift.

The table below shows the sign of each axis contribution for a standard quad X layout with props spinning inward at the front (a common default).

Motor positionRoll rightPitch forwardYaw rightThrottle
Rear right-1+1-1+1
Front right-1-1+1+1
Rear left+1+1+1+1
Front left+1-1-1+1
Mixing signs for a quad X airframe

Exact signs depend on the firmware’s axis conventions and the chosen propeller direction, which is why the motor order and “props in” or “props out” setting must agree with the configuration in software.

Mixer types for different airframes

Each airframe layout needs its own mixer geometry, because the lever arm of every motor relative to the center of gravity determines how much it contributes to roll and pitch. Firmware such as Betaflight, INAV, ArduPilot and PX4 ships with predefined mixers and also allows a custom mixer for unusual frames.

Mixer presetMotorsYaw mechanismTypical use
Quad X4Reaction torqueFPV racing, camera drones
Quad plus4Reaction torqueEarly hobby builds, research
Hexa X6Reaction torqueHeavy lift with motor redundancy
Octo X8 coaxial8Reaction torque between layersCompact heavy lift
Tricopter3Tilting tail servoAgile hobby aircraft
Fixed wing (elevon)1 plus servosRudder or differential surfacesLong-range mapping
Common mixer presets and their characteristics

On stretched X or dead-cat frames, motors are not placed symmetrically, so a custom mixer with scaled roll and pitch weights keeps the response even across axes. Using the plain quad X mixer on such a frame produces handling that feels different in roll and pitch.

Saturation, airmode and output scaling

Motor saturation occurs when the mixer asks a motor for more than 100% or less than 0% output. Because a motor cannot exceed its limits, the requested torque ratio is lost, and the aircraft may not follow the command. Mixers therefore apply a desaturation strategy that shifts or scales all outputs together to preserve the attitude correction.

The most important strategy in FPV firmware is Airmode, which keeps full PID authority at zero throttle by raising the throttle floor when needed. Without it, a quadcopter at idle cannot correct attitude, which makes flips and dives unstable. Many controllers also offer yaw authority limits because yaw needs large speed differences and can easily saturate the motors.

The following table summarizes how common firmware strategies deal with saturation.

StrategyWhat it doesTrade-off
Throttle shiftMoves all outputs up or down togetherAltitude changes briefly
Proportional scalingShrinks the correction to fit the rangeWeaker attitude response
AirmodeKeeps full authority at low throttleAircraft may float at idle
Yaw priority reductionClips yaw before roll and pitchSlower yaw under load
Thrust linearizationCompensates nonlinear propeller thrustNeeds tuning per build
Saturation handling strategies

Motor mixing sits after PID tuning and before the ESC protocol in the control chain. It does not decide how strongly the aircraft should react, which is the job of the PID loop and the rates settings; it only distributes the already computed correction among the motors.

  • PID controller: computes the required torque on each axis from the error between desired and measured rotation.
  • Mixer: converts those torques and the throttle into per-motor commands based on geometry.
  • ESC and motor: execute the commands, usually through a digital protocol such as DShot.
  • Filters: such as gyro filtering and the RPM filter, clean the input before the PID stage, not the mixer output.

Because of this separation, a mixer error shows up as a structural fault, for example a drone that flips immediately at takeoff, while a PID error usually appears as oscillation or sluggish handling.

Common configuration mistakes

Most mixing problems come from a mismatch between the configured layout and the real hardware. The checks below should be completed with propellers removed before the first flight.

SymptomLikely causeFix
Instant flip on takeoffWrong motor orderRemap motor outputs in software
Violent yaw spinReversed propeller direction settingMatch props in or out setting
One axis feels weakerAsymmetric frame on default mixerUse custom mixer weights
Loss of control in divesSaturation at low throttleEnable Airmode
Drift during yawUnequal motors or bent armInspect hardware and mounting
Symptoms of mixer misconfiguration

A careful motor test in the configurator, combined with a check of rotation direction on each motor, prevents nearly all of these failures. Changing the mixer after tuning also invalidates the PID tune, because the effective gain per axis changes.

Explained without jargon

A drone has no wings to steer with. It turns only by spinning its motors at different speeds. Motor mixing is the small piece of software that decides how fast each motor should spin.

Think of four people carrying a table. To tilt it left, the people on the left lower their corners. To turn it, they push in different directions. The mixer is the coordinator who tells each person what to do, so the whole table moves the way the pilot wants.

A typical use case

A hobbyist builds a 5-inch FPV quadcopter on a stretched X frame, where the front and rear arms are spaced wider than the side arms. After installing Betaflight, the builder selects the quad X mixer, confirms the motor order with the motor test tab and checks that each propeller spins in the props-out direction set in the software.

On the first hover, the quad feels noticeably quicker in roll than in pitch. The builder adds a custom mixer with pitch weights scaled by about 15% to balance the different lever arms and inertia, enables Airmode for stable flips and then repeats a short PID tune. The result is an aircraft that responds evenly on both axes and holds its attitude cleanly through low-throttle dives.