Skip to content

Commit

Permalink
Fixes #12391
Browse files Browse the repository at this point in the history
precland: store result of _target_pose_sub.update() for later use
  • Loading branch information
Nicolas de Palezieux committed Jul 4, 2019
1 parent 72a4494 commit 2f697ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/navigator/precland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ void
PrecLand::on_active()
{
// get new target measurement
if (_target_pose_sub.update(&_target_pose)) {
_target_pose_updated = _target_pose_sub.update(&_target_pose);

if (_target_pose_updated) {
_target_pose_valid = true;
}

Expand Down

0 comments on commit 2f697ab

Please sign in to comment.