mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
make itermrelax on yaw optional
This commit is contained in:
parent
7e12e9da18
commit
6239b8258a
3 changed files with 10 additions and 3 deletions
|
@ -628,7 +628,7 @@ void FAST_CODE pidController(const pidProfile_t *pidProfile, const rollAndPitchT
|
|||
|
||||
// -----calculate I component
|
||||
float itermErrorRate;
|
||||
if (itermRelax) {
|
||||
if (itermRelax && (axis < FD_YAW || itermRelax == 2 )) {
|
||||
const float gyroTargetLow = pt1FilterApply(&windupLpf[axis][0], currentPidSetpoint);
|
||||
const float gyroTargetHigh = pt1FilterApply(&windupLpf[axis][1], currentPidSetpoint);
|
||||
if (axis < FD_YAW) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue