1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

ITerm relax feature

This commit is contained in:
Thorsten Laux 2018-05-24 15:05:03 +02:00
parent d330ad519e
commit 85b0f6f9c2
2 changed files with 748 additions and 1 deletions

View file

@ -708,7 +708,7 @@ void FAST_CODE pidController(const pidProfile_t *pidProfile, const rollAndPitchT
currentPidSetpoint = 0.0f;
}
#endif // USE_YAW_SPIN_RECOVERY
// -----calculate error rate
const float gyroRate = gyro.gyroADCf[axis]; // Process variable from gyro output in deg/sec
float errorRate = currentPidSetpoint - gyroRate; // r - y