Skip to content
Snippets Groups Projects
Commit 86d3603e authored by Oleg Kalachev's avatar Oleg Kalachev Committed by Kabir Mohammed
Browse files

precland: fix landing target pose validity checking

In precland the copter may switch to horizontal approach state with an
old landing target pose message.
parent 036b59f3
No related branches found
No related tags found
No related merge requests found
......@@ -477,7 +477,7 @@ bool PrecLand::check_state_conditions(PrecLandState state)
}
// If we're trying to switch to this state, the target needs to be visible
return _target_pose_updated && _target_pose.abs_pos_valid;
return _target_pose_updated && _target_pose_valid && _target_pose.abs_pos_valid;
case PrecLandState::DescendAboveTarget:
......
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