mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Merge pull request #10781 from ctzsnooze/fix-error-horizon-code
This commit is contained in:
parent
7158bd4300
commit
ac4170cbc7
1 changed files with 1 additions and 1 deletions
|
@ -845,7 +845,7 @@ STATIC_UNIT_TESTED float calcHorizonLevelStrength(void)
|
||||||
}
|
}
|
||||||
} else { // horizon_tilt_expert_mode = 0 (leveling always active when sticks centered)
|
} else { // horizon_tilt_expert_mode = 0 (leveling always active when sticks centered)
|
||||||
float sensitFact;
|
float sensitFact;
|
||||||
if (horizonFactorRatio < 1.01f) { // if horizonTiltEffect > 0
|
if (horizonFactorRatio < 1.0f) { // if horizonTiltEffect > 0
|
||||||
// horizonFactorRatio: 1.0 to 0.0 (larger means more leveling)
|
// horizonFactorRatio: 1.0 to 0.0 (larger means more leveling)
|
||||||
// inclinationLevelRatio (0.0 to 1.0) is smaller (less leveling)
|
// inclinationLevelRatio (0.0 to 1.0) is smaller (less leveling)
|
||||||
// for larger inclinations, goes to 1.0 at inclination==level:
|
// for larger inclinations, goes to 1.0 at inclination==level:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue