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:
parent
3d5a0e585c
commit
bfb8954a43
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue