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 15, 2019
1 parent eda45b4 commit 14d3288
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/land_detector/MulticopterLandDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ bool MulticopterLandDetector::_get_maybe_landed_state()

bool MulticopterLandDetector::_get_landed_state()
{
// if already landed and that the drone has low thrust, it has to be on the ground
if (_state == LandDetectionState::LANDED && _has_low_thrust()) {
return true;
}

// reset the landed_time
if (!_maybe_landed_hysteresis.get_state()) {

Expand Down

0 comments on commit 14d3288

Please sign in to comment.