43 #include <px4_platform_common/px4_work_queue/WorkItem.hpp> 102 virtual void call() = 0;
119 _work_item(work_item)
129 _work_item->ScheduleNow();
virtual ~SubscriptionCallback()
void unregister_callback(SubscriptionCallback *callback_sub)
Subscription _subscription
SubscriptionCallback(const orb_metadata *meta, uint8_t interval_ms=0, uint8_t instance=0)
Constructor.
px4::WorkItem * _work_item
uint8_t get_instance() const
An intrusive linked list.
SubscriptionCallbackWorkItem(px4::WorkItem *work_item, const orb_metadata *meta, uint8_t instance=0)
Constructor.
int orb_unsubscribe(int handle)
orb_id_t get_topic() const
int orb_subscribe_multi(const struct orb_metadata *meta, unsigned instance)
void unregisterCallback()
bool register_callback(SubscriptionCallback *callback_sub)
__EXPORT hrt_abstime hrt_elapsed_time_atomic(const volatile hrt_abstime *then)
Compute the delta between a timestamp taken in the past and now.