mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 11:59:17 +08:00
precland: store result of _target_pose_sub.update() for later use
- Fixes #12391
This commit is contained in:
committed by
Daniel Agar
parent
72a449490a
commit
2f1cfa60f4
@@ -106,7 +106,9 @@ void
|
|||||||
PrecLand::on_active()
|
PrecLand::on_active()
|
||||||
{
|
{
|
||||||
// get new target measurement
|
// 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;
|
_target_pose_valid = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user