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:
Julian Oes 2016-07-17 16:30:06 +01:00
parent 740bfc0b32
commit 93acff8641

View File

@ -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;