mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-28 00:54:06 +08:00
MulticopterLandDetector: remove always true call
The result from `!get_freefall_state()` was always true because `get_freefall_state()` is already called before `get_landed_state()` is called. Only if we're not in a freefall, we check if we are landed.
This commit is contained in:
parent
740bfc0b32
commit
93acff8641
@ -203,7 +203,7 @@ bool MulticopterLandDetector::get_landed_state()
|
||||
// quite acrobatic flight.
|
||||
if ((_min_trust_start > 0) &&
|
||||
(hrt_elapsed_time(&_min_trust_start) > 8 * 1000 * 1000)) {
|
||||
return !get_freefall_state();
|
||||
return true;
|
||||
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user