mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
SEnsitivity to 10 deg/s on both
This commit is contained in:
parent
b61d641bfc
commit
19694902fe
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ float applyActualRates(const int axis, float rcCommandf, const float rcCommandfA
|
||||||
float expof = currentControlRateProfile->rcExpo[axis] / 100.0f;
|
float expof = currentControlRateProfile->rcExpo[axis] / 100.0f;
|
||||||
expof = rcCommandfAbs * (powerf(rcCommandf, 5) * expof + rcCommandf * (1 - expof));
|
expof = rcCommandfAbs * (powerf(rcCommandf, 5) * expof + rcCommandf * (1 - expof));
|
||||||
|
|
||||||
const float centerSensitivity = currentControlRateProfile->rcRates[axis];
|
const float centerSensitivity = currentControlRateProfile->rcRates[axis] * 10.0f;
|
||||||
const float stickMovement = MAX(0, currentControlRateProfile->rates[axis] * 10.0f - centerSensitivity);
|
const float stickMovement = MAX(0, currentControlRateProfile->rates[axis] * 10.0f - centerSensitivity);
|
||||||
const float angleRate = rcCommandf * centerSensitivity + stickMovement * expof;
|
const float angleRate = rcCommandf * centerSensitivity + stickMovement * expof;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue