Skip to content
Snippets Groups Projects
Commit 8f7ebc1f authored by Dennis Mannhart's avatar Dennis Mannhart Committed by Lorenz Meier
Browse files

mc landdetector: simplify return

parent 8a76bd07
No related branches found
No related tags found
No related merge requests found
......@@ -266,11 +266,8 @@ bool MulticopterLandDetector::_get_landed_state()
{
// if we have maybe_landed, the mc_pos_control goes into idle (thrust_sp = 0.0)
// therefore check if all other condition of the landed state remain true
if (_maybe_landed_hysteresis.get_state()) {
return true;
}
return _maybe_landed_hysteresis.get_state();
return false;
}
float MulticopterLandDetector::_get_takeoff_throttle()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment