1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Merge pull request #10781 from ctzsnooze/fix-error-horizon-code

This commit is contained in:
Michael Keller 2021-08-04 01:37:28 +12:00
parent 7158bd4300
commit ac4170cbc7

View file

@ -845,7 +845,7 @@ STATIC_UNIT_TESTED float calcHorizonLevelStrength(void)
}
} else { // horizon_tilt_expert_mode = 0 (leveling always active when sticks centered)
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)
// inclinationLevelRatio (0.0 to 1.0) is smaller (less leveling)
// for larger inclinations, goes to 1.0 at inclination==level: