From 7101fe220af4c97ff0016f1b922b58b96b5bd6fc Mon Sep 17 00:00:00 2001 From: ctzsnooze Date: Thu, 21 Mar 2019 10:24:47 +1100 Subject: [PATCH] log acCorrection, not acError Improves usefulness of Absolute Control logging in iterm_relax mode. --- src/main/flight/pid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/flight/pid.c b/src/main/flight/pid.c index 5ca8a804de..f905b77ce2 100644 --- a/src/main/flight/pid.c +++ b/src/main/flight/pid.c @@ -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)); } } }