From ac4170cbc7bb5ded570e046799f4101644c41664 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Wed, 4 Aug 2021 01:37:28 +1200 Subject: [PATCH] Merge pull request #10781 from ctzsnooze/fix-error-horizon-code --- src/main/flight/pid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/flight/pid.c b/src/main/flight/pid.c index 47136e4c9c..affa2951ad 100644 --- a/src/main/flight/pid.c +++ b/src/main/flight/pid.c @@ -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: