mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 06:41:37 +08:00
FlightTasks: use forced update just after initialization
This commit is contained in:
@@ -142,7 +142,7 @@ public:
|
|||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
_subscription_array.update();
|
_subscription_array.forcedUpdate(); // make sure data is available for all new subscriptions
|
||||||
|
|
||||||
if (_current_task->activate()) {
|
if (_current_task->activate()) {
|
||||||
_current_task->~FlightTask();
|
_current_task->~FlightTask();
|
||||||
@@ -151,8 +151,6 @@ public:
|
|||||||
return -3;
|
return -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
_subscription_array.forcedUpdate(); // make sure data is available for all new subscriptions
|
|
||||||
|
|
||||||
_current_task_index = task_number;
|
_current_task_index = task_number;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user