1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 14:55:21 +03:00

Fixed yaw direction after #3873.

This commit is contained in:
mikeller 2017-08-17 23:32:21 +12:00
parent 27b146e274
commit 0854953cf0

View file

@ -595,7 +595,7 @@ void mixTable(uint8_t vbatPidCompensation)
float scaledAxisPidPitch = float scaledAxisPidPitch =
constrainf((axisPID_P[FD_PITCH] + axisPID_I[FD_PITCH] + axisPID_D[FD_PITCH]) / PID_MIXER_SCALING, -pidSumLimit, pidSumLimit); constrainf((axisPID_P[FD_PITCH] + axisPID_I[FD_PITCH] + axisPID_D[FD_PITCH]) / PID_MIXER_SCALING, -pidSumLimit, pidSumLimit);
float scaledAxisPidYaw = 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()) { if (isMotorsReversed()) {
scaledAxisPidRoll = -scaledAxisPidRoll; scaledAxisPidRoll = -scaledAxisPidRoll;
scaledAxisPidPitch = -scaledAxisPidPitch; scaledAxisPidPitch = -scaledAxisPidPitch;