mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 03:13:44 +08:00
precland: fix landing_target_pose subscription check
This commit is contained in:
committed by
Kabir Mohammed
parent
fef2e2ba82
commit
749a590c1c
@@ -69,7 +69,7 @@ void
|
||||
PrecLand::on_activation()
|
||||
{
|
||||
// We need to subscribe here and not in the constructor because constructor is called before the navigator task is spawned
|
||||
if (!_target_pose_sub) {
|
||||
if (_target_pose_sub < 0) {
|
||||
_target_pose_sub = orb_subscribe(ORB_ID(landing_target_pose));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user