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

small bug in horizon code

This commit is contained in:
ctzsnooze 2021-06-03 16:25:49 +10:00
parent 3d5a0e585c
commit bfb8954a43

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: