mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-19 18:29:05 +08:00
precland: store result of _target_pose_sub.update() for later use
- Fixes #12391
This commit is contained in:
parent
72a449490a
commit
2f1cfa60f4
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user