From f00a8e6d0f97668ed65a6864dd77c821f2eb1514 Mon Sep 17 00:00:00 2001 From: jflyper Date: Tue, 9 Oct 2018 12:42:58 +0900 Subject: [PATCH] Move USE_ITERM_RELAX to prevent unused warning of applyAbsoluteControl --- 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 65ee10255..44a1f4760 100644 --- a/src/main/flight/pid.c +++ b/src/main/flight/pid.c @@ -838,6 +838,7 @@ void FAST_CODE applySmartFeedforward(int axis) } #endif // USE_SMART_FEEDFORWARD +#if defined(USE_ITERM_RELAX) #if defined(USE_ABSOLUTE_CONTROL) STATIC_UNIT_TESTED void applyAbsoluteControl(const int axis, const float gyroRate, const bool itermRelaxIsEnabled, const float setpointLpf, const float setpointHpf, @@ -880,7 +881,6 @@ STATIC_UNIT_TESTED void applyAbsoluteControl(const int axis, const float gyroRat } #endif -#if defined(USE_ITERM_RELAX) STATIC_UNIT_TESTED void applyItermRelax(const int axis, const float iterm, const float gyroRate, float *itermErrorRate, float *currentPidSetpoint) {