Skip to content

Commit

Permalink
LNDMC - Add landed shortcut if drone is already in landed state and t…
Browse files Browse the repository at this point in the history
…hrottle is low to avoid detecting takeoff due to measurement and estimation inaccuracies
  • Loading branch information
bresch committed Jan 23, 2019
1 parent cc68775 commit 4415edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/land_detector/MulticopterLandDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ bool MulticopterLandDetector::_get_maybe_landed_state()

bool MulticopterLandDetector::_get_landed_state()
{
// When not armed, consider to be landed
if (!_arming.armed) {
// if disarmed or if already landed and that the drone has low thrust, it has to be on the ground
if (!_arming.armed || (_state == LandDetectionState::LANDED && _has_low_thrust())) {
return true;
}

Expand Down

0 comments on commit 4415edf

Please sign in to comment.