mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 13:10:36 +08:00
Subscription & SubscriptionArray: add forcedUpdate() methods
Can be used to immediately get & use the data, as needed for the flight tasks.
This commit is contained in:
@@ -76,3 +76,10 @@ void SubscriptionArray::update()
|
||||
_subscriptions[i]->update();
|
||||
}
|
||||
}
|
||||
|
||||
void SubscriptionArray::forcedUpdate()
|
||||
{
|
||||
for (int i = 0; i < _subscriptions_count; ++i) {
|
||||
_subscriptions[i]->forcedUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user