mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Optimise disabled anti gravity gain // disable by default
This commit is contained in:
parent
80c0e32660
commit
7f8ed026bf
2 changed files with 3 additions and 2 deletions
|
@ -183,7 +183,7 @@ static void resetPidProfile(pidProfile_t *pidProfile)
|
||||||
pidProfile->yawRateAccelLimit = 10.0f;
|
pidProfile->yawRateAccelLimit = 10.0f;
|
||||||
pidProfile->rateAccelLimit = 0.0f;
|
pidProfile->rateAccelLimit = 0.0f;
|
||||||
pidProfile->itermThrottleThreshold = 350;
|
pidProfile->itermThrottleThreshold = 350;
|
||||||
pidProfile->itermAcceleratorGain = 2.0f;
|
pidProfile->itermAcceleratorGain = 1.0f;
|
||||||
pidProfile->itermAcceleratorRateLimit = 80;
|
pidProfile->itermAcceleratorRateLimit = 80;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,8 @@ void processRcCommand(void)
|
||||||
|
|
||||||
if (isRXDataNew) {
|
if (isRXDataNew) {
|
||||||
currentRxRefreshRate = constrain(getTaskDeltaTime(TASK_RX),1000,20000);
|
currentRxRefreshRate = constrain(getTaskDeltaTime(TASK_RX),1000,20000);
|
||||||
checkForThrottleErrorResetState(currentRxRefreshRate);
|
if (currentProfile->pidProfile.itermAcceleratorGain > 1.0f)
|
||||||
|
checkForThrottleErrorResetState(currentRxRefreshRate);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rxConfig()->rcInterpolation || flightModeFlags) {
|
if (rxConfig()->rcInterpolation || flightModeFlags) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue