Optimise disabled anti gravity gain // disable by default

This commit is contained in:
borisbstyle 2017-02-07 00:05:38 +01:00
parent 80c0e32660
commit 7f8ed026bf
2 changed files with 3 additions and 2 deletions

View File

@ -183,7 +183,7 @@ static void resetPidProfile(pidProfile_t *pidProfile)
pidProfile->yawRateAccelLimit = 10.0f;
pidProfile->rateAccelLimit = 0.0f;
pidProfile->itermThrottleThreshold = 350;
pidProfile->itermAcceleratorGain = 2.0f;
pidProfile->itermAcceleratorGain = 1.0f;
pidProfile->itermAcceleratorRateLimit = 80;
}

View File

@ -181,6 +181,7 @@ void processRcCommand(void)
if (isRXDataNew) {
currentRxRefreshRate = constrain(getTaskDeltaTime(TASK_RX),1000,20000);
if (currentProfile->pidProfile.itermAcceleratorGain > 1.0f)
checkForThrottleErrorResetState(currentRxRefreshRate);
}