1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00

Move USE_ITERM_RELAX to prevent unused warning of applyAbsoluteControl

This commit is contained in:
jflyper 2018-10-09 12:42:58 +09:00
parent 8283aba668
commit f00a8e6d0f

View file

@ -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)
{