# \[Bug\] Mixing doesn't allocate right actuator commands

**URL:** <https://discuss.px4.io/t/bug-mixing-doesnt-allocate-right-actuator-commands/49514>\
**Category:** PX4 Autopilot\
**Created:** [September 18, 2026, 12:45pm UTC](https://discuss.px4.io/t/bug-mixing-doesnt-allocate-right-actuator-commands/49514 "2026-09-18T12:45:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andre-hm](https://discuss.px4.io/user_avatar/discuss.px4.io/andre-hm/32/22056_2.png) [@Andre-hm](https://discuss.px4.io/u/Andre-hm)\
**Post date:** [September 18, 2026, 12:45pm UTC](https://discuss.px4.io/t/bug-mixing-doesnt-allocate-right-actuator-commands/49514/1 "2026-09-18T12:45:59Z")

</div>

Hello everyone,

These are my setup :

Hardware Setup :

- Airframe : Standard VTOL
- Pixhawk 6X-RT
- Weight : 6.5 kg
- Wingspan : around 2m
- Forward motor connected to MAIN5 of pixhawk

Firmware Setup :

- PX4 : firmware 1.17 (commit d6f12)

Steps done :

- ESC calibration of the forward motor
- Radio calibration

I have a VTOL vehicle, when it is in FW mode and MANUAL flight mode, I cannot control correctly the speed of the forward motor. In fact when I’m giving a low RC throttle input (~1200-1300 PWM values), the motor output is saturating at its max value (2000 PWM). In this mode (“MANUAL”), I expect that it is reached only when the throttle stick is at high position.

Below an extract of the px4 log, you can see that the forward motor is saturating at 1200 PWM inputs

 ![image](https://discuss.px4.io/uploads/default/original/3X/6/f/6f79f57e59f997056252d91030ee10e8f47bb474.png)

What I understand from these data is that the mixing doesn’t work correctly because actuator motor command is saturating (+1) for low vehicle\_trust\_setpoint (0.2) (inputs of mixing)

So, I check the code of PX4 firmware to understand it more deeper. I have found that the RC inputs are going to _ **fw\_rate\_control.cpp** _ and then it’s transformated into a trust setpoint (vehicle\_trust\_setpoint\_xyz[0]) and transmitted to the control allocator. The functionning of the mixing algorithms is rather complicated, but I have understood that the goal of it is to find each actuator command according to the geometry and type of vehicle using different effectiveness matrices (one for control surfaces and one for rotors) to compute them.

I have tried to increase the ct parameter _ **CA\_ROTOR4\_CT** _ to **100** (because : thrust = ct \* u(actuator\_command)) it’s a coefficient used in the calculation of the actuator command) to supress the problem and I have seen that the max rotation of the motor is reached at 1600 of PWM inputs instead of 1200. Below you can see it.

 ![image](https://discuss.px4.io/uploads/default/original/3X/b/0/b018a83457d50c3a8dc06b4e4b54fa4e0d6dc220.png)

This phenomenon is only occuring with the forward motor and occurs with other flight modes in FW (STABILIZED).

Does someone have an idea on how to solve **completely** this problem ?

---

<div class="post-metadata">

**Author:** ![Benja](https://discuss.px4.io/user_avatar/discuss.px4.io/benja/32/11872_2.png) [@Benja](https://discuss.px4.io/u/Benja)\
**Post date:** [September 29, 2026, 8:21pm UTC](https://discuss.px4.io/t/bug-mixing-doesnt-allocate-right-actuator-commands/49514/2 "2026-09-29T20:21:06Z")

</div>

Hi @Andre-hm  
This is indeed very strange.  
could you share the entire log file please?  
A screenshot of your QGC actuator tab would also help.  
Thanks!

---

<div class="post-metadata">

**Author:** ![yigitcan-ozturk](https://discuss.px4.io/user_avatar/discuss.px4.io/yigitcan-ozturk/32/22039_2.png) [@yigitcan-ozturk](https://discuss.px4.io/u/yigitcan-ozturk)\
**Post date:** [September 30, 2026, 12:54pm UTC](https://discuss.px4.io/t/bug-mixing-doesnt-allocate-right-actuator-commands/49514/3 "2026-09-30T12:54:36Z")

</div>

The fact that changing `CA_ROTOR4_CT` changes the observed behaviour is a useful clue.

Before treating this as an output/mixing issue, I would try to locate where the unexpected +1 command first appears in the control-allocation chain.

Could you capture a ULog from a minimal reproduction and compare, over the same interval:

- vehicle/control mode and VTOL state

- control allocator setpoints

- actuator effectiveness / allocation status

- actuator commands before final output

- saturation/allocation flags

- RC/manual input

The key question is whether the forward motor command is already present in the allocator result, or whether the allocator is producing something reasonable and the unexpected command appears later in the actuator-output path.

Since `CA_ROTOR4_CT` affects the behaviour, I would also compare two otherwise identical logs one with the original value and one with the modified value and identify the first signal that diverges between them.

That should help distinguish an effectiveness-matrix/configuration issue from a downstream output issue.

If you can share those two ULogs together with the PX4 version/commit and airframe configuration, I’d be interested in comparing the first divergence point.

---

<div class="post-metadata">

**Author:** ![Andre-hm](https://discuss.px4.io/user_avatar/discuss.px4.io/andre-hm/32/22056_2.png) [@Andre-hm](https://discuss.px4.io/u/Andre-hm)\
**Post date:** [October 5, 2026, 9:59am UTC](https://discuss.px4.io/t/bug-mixing-doesnt-allocate-right-actuator-commands/49514/4 "2026-10-05T09:59:19Z")

</div>

I share now an extract of logs (.csv) : [https://wetransfer.com/downloads/1459abc9409ffcc44e95cd2a41d181d320261005095131/863afcfec9f8a150736f2fc9a647f3de20261005095151/93f1ff](https://wetransfer.com/downloads/1459abc9409ffcc44e95cd2a41d181d320261005095131/863afcfec9f8a150736f2fc9a647f3de20261005095151/93f1ff?utm_source=wt_sendgrid&utm_medium=email&utm_campaign=TRN_DL_WTP_01&trk=TRN_DL_WTP_01 "https://wetransfer.com/downloads/1459abc9409ffcc44e95cd2a41d181d320261005095131/863afcfec9f8a150736f2fc9a647f3de20261005095151/93f1ff?utm\_source=wt\_sendgrid&utm\_medium=email&utm\_campaign=TRN\_DL\_WTP\_01&trk=TRN\_DL\_WTP\_01") with necessary topics (I didn’t have access to actuators effectiveness status in ulog and didn’t see what to change in the SD\_log\_profile parameter)

Also, I share this problem on the github : [[Bug] Bad control allocator output on forward motor (FW) · Issue #28829 · PX4/PX4-Autopilot · GitHub](https://github.com/PX4/PX4-Autopilot/issues/28829#issuecomment-5858616959) , the bug could be correlated with a problem of mixing when the front motor isn’t at the same level than the CDG (in z axis) : CA\_ROTOR\_PZ = 0.05 != 0.0. That creates little pitch, that is taken in account in the efffectiveness matrix that averages the thrust in x axis.

 ![image](https://discuss.px4.io/uploads/default/original/3X/1/a/1ad2ae04e5be98fbbd8be3fd08d25696e781b42b.png)

 ![image](https://discuss.px4.io/uploads/default/original/3X/3/2/326e9bde24201dda769bd06a1bcef78d951c54c3.png)

Airframe : Standard VTOL

PX4 : firmware 1.17 (commit d6f12)

---

<div class="post-metadata">

**Author:** ![yigitcan-ozturk](https://discuss.px4.io/user_avatar/discuss.px4.io/yigitcan-ozturk/32/22039_2.png) [@yigitcan-ozturk](https://discuss.px4.io/u/yigitcan-ozturk)\
**Post date:** [October 5, 2026, 12:13pm UTC](https://discuss.px4.io/t/bug-mixing-doesnt-allocate-right-actuator-commands/49514/5 "2026-10-05T12:13:46Z")

</div>

Hi Andre,

Thanks for sharing the CSV exports. I reviewed all three runs and the result is quite clear.

In both runs with `CA_ROTOR4_CT = 6.5`, the pre-saturation relationship is essentially identical:  
**Motor 5 command ≈ 4.425 × vehicle\_thrust\_setpoint.x**

Motor 5 therefore reaches its normalized limit at an X-thrust setpoint of only about **0.225–0.229**. In both runs, non-zero `unallocated_thrust.x` follows the saturation event.

The CT=100 run is a useful control experiment: the observed gain drops to about **1.672×** , and saturation moves to approximately **0.59–0.60 X-thrust**.

This strongly localizes the behavior to the control-allocation effectiveness/scaling path and is consistent with the mechanism described in PX4 #28829 / PR #28953.

The next useful validation would be a matched run with the #28953 fix applied, while restoring `CA_ROTOR4_CT = 6.5` and keeping `CA_ROTOR4_PZ = 0.05`. Then we can compare the gain, first saturation point and `unallocated_thrust.x` before/after the fix.

I also prepared a short validation note with the three-run comparison.
