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