mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
add debug option DEBUG_ITERM_RELAX
This commit is contained in:
parent
32748a328a
commit
791c584d81
3 changed files with 4 additions and 0 deletions
|
@ -631,6 +631,8 @@ void FAST_CODE pidController(const pidProfile_t *pidProfile, const rollAndPitchT
|
|||
if (itermRelax) {
|
||||
const float gyroTargetHigh = pt1FilterApply(&windupLpf[axis][0], currentPidSetpoint);
|
||||
const float gyroTargetLow = pt1FilterApply(&windupLpf[axis][1], currentPidSetpoint);
|
||||
DEBUG_SET(DEBUG_ITERM_RELAX, 0, gyroTargetHigh);
|
||||
DEBUG_SET(DEBUG_ITERM_RELAX, 1, gyroTargetLow);
|
||||
const float gmax = MAX(gyroTargetHigh, gyroTargetLow);
|
||||
const float gmin = MIN(gyroTargetHigh, gyroTargetLow);
|
||||
if (gyroRate >= gmin && gyroRate <= gmax)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue