mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Merge tag 'v3.1.2'
This commit is contained in:
commit
51b19855dd
6 changed files with 24 additions and 30 deletions
|
@ -60,7 +60,6 @@
|
|||
|
||||
#include "fc/config.h"
|
||||
#include "fc/rc_controls.h"
|
||||
#include "fc/rc_curves.h"
|
||||
#include "fc/runtime_config.h"
|
||||
|
||||
#include "flight/altitudehold.h"
|
||||
|
@ -181,11 +180,11 @@ static void resetPidProfile(pidProfile_t *pidProfile)
|
|||
pidProfile->levelAngleLimit = 55;
|
||||
pidProfile->levelSensitivity = 55;
|
||||
pidProfile->setpointRelaxRatio = 30;
|
||||
pidProfile->dtermSetpointWeight = 200;
|
||||
pidProfile->dtermSetpointWeight = 190;
|
||||
pidProfile->yawRateAccelLimit = 10.0f;
|
||||
pidProfile->rateAccelLimit = 0.0f;
|
||||
pidProfile->itermThrottleThreshold = 300;
|
||||
pidProfile->itermAcceleratorGain = 3.0f;
|
||||
pidProfile->itermThrottleThreshold = 350;
|
||||
pidProfile->itermAcceleratorGain = 1.5f;
|
||||
pidProfile->itermAcceleratorRateLimit = 80;
|
||||
}
|
||||
|
||||
|
@ -887,15 +886,8 @@ void resetConfigs(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
void activateControlRateConfig(void)
|
||||
{
|
||||
generateThrottleCurve(currentControlRateProfile, &masterConfig.motorConfig);
|
||||
}
|
||||
|
||||
void activateConfig(void)
|
||||
{
|
||||
activateControlRateConfig();
|
||||
|
||||
resetAdjustmentStates();
|
||||
|
||||
useRcControlsConfig(
|
||||
|
@ -1205,7 +1197,6 @@ void changeControlRateProfile(uint8_t profileIndex)
|
|||
profileIndex = MAX_RATEPROFILES - 1;
|
||||
}
|
||||
setControlRateProfile(profileIndex);
|
||||
activateControlRateConfig();
|
||||
}
|
||||
|
||||
void beeperOffSet(uint32_t mask)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue