1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

Always USE_TPA_MODE (#13942)

Always use TPA_MODES
This commit is contained in:
Ivan Efimov 2024-09-30 09:30:52 -05:00 committed by GitHub
parent dfea2c8cbf
commit a37bd7c974
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 0 additions and 13 deletions

View file

@ -944,11 +944,7 @@ void FAST_CODE pidController(const pidProfile_t *pidProfile, timeUs_t currentTim
calculateSpaValues(pidProfile);
#ifdef USE_TPA_MODE
const float tpaFactorKp = (pidProfile->tpa_mode == TPA_MODE_PD) ? pidRuntime.tpaFactor : 1.0f;
#else
const float tpaFactorKp = pidRuntime.tpaFactor;
#endif
#ifdef USE_YAW_SPIN_RECOVERY
const bool yawSpinActive = gyroYawSpinDetected();