1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +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 committed by GitHub
commit b613cc2a7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -382,7 +382,7 @@ STATIC_UNIT_TESTED float calcHorizonLevelStrength(void)
}
} else { // horizon_tilt_expert_mode = 0 (leveling always active when sticks centered)
float sensitFact;
if (pidRuntime.horizonFactorRatio < 1.01f) { // if horizonTiltEffect > 0
if (pidRuntime.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: