1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00

log acCorrection, not acError

Improves usefulness of Absolute Control logging in iterm_relax mode.
This commit is contained in:
ctzsnooze 2019-03-21 10:24:47 +11:00
parent 4abf29e139
commit 7101fe220a

View file

@ -1104,7 +1104,7 @@ STATIC_UNIT_TESTED void applyAbsoluteControl(const int axis, const float gyroRat
*currentPidSetpoint += acCorrection;
*itermErrorRate += acCorrection;
if (axis == FD_ROLL) {
DEBUG_SET(DEBUG_ITERM_RELAX, 3, lrintf(axisError[axis] * 10));
DEBUG_SET(DEBUG_ITERM_RELAX, 3, lrintf(acCorrection * 10));
}
}
}