mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Merge pull request #3882 from mikeller/fix_yaw_direction
Fixed yaw direction after #3873.
This commit is contained in:
commit
b64ab340a7
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ void mixTable(uint8_t vbatPidCompensation)
|
|||
float scaledAxisPidPitch =
|
||||
constrainf((axisPID_P[FD_PITCH] + axisPID_I[FD_PITCH] + axisPID_D[FD_PITCH]) / PID_MIXER_SCALING, -pidSumLimit, pidSumLimit);
|
||||
float scaledAxisPidYaw =
|
||||
constrainf((axisPID_P[FD_YAW] + axisPID_I[FD_YAW]) / PID_MIXER_SCALING, -pidSumLimitYaw, pidSumLimitYaw);
|
||||
-constrainf((axisPID_P[FD_YAW] + axisPID_I[FD_YAW]) / PID_MIXER_SCALING, -pidSumLimitYaw, pidSumLimitYaw);
|
||||
if (isMotorsReversed()) {
|
||||
scaledAxisPidRoll = -scaledAxisPidRoll;
|
||||
scaledAxisPidPitch = -scaledAxisPidPitch;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue