mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 21:23:34 +08:00
FlightTasks: initialize task state based on subscriptions after the SubscriptionArray was initialized
This commit is contained in:
@@ -13,6 +13,13 @@ bool FlightTask::initializeSubscriptions(SubscriptionArray &subscription_array)
|
||||
return true;
|
||||
}
|
||||
|
||||
int FlightTask::activate()
|
||||
{
|
||||
_time_stamp_activate = hrt_absolute_time();
|
||||
update(); /* to get subscriptions and evaluate them */
|
||||
return 0;
|
||||
}
|
||||
|
||||
int FlightTask::update()
|
||||
{
|
||||
_time_stamp_current = hrt_absolute_time();
|
||||
|
||||
Reference in New Issue
Block a user