83 bool update(
void *data);
85 int getHandle()
const {
return _handle; }
89 unsigned getInstance()
const {
return _instance; }
130 virtual bool update() = 0;
135 virtual bool forcedUpdate() = 0;
182 return orb_copy(_meta, _handle, &_data) == PX4_OK;
An intrusive linked list.
bool update(void *data)
Update the struct.
Definition: Subscription.cpp:76
bool forcedUpdate() override
Like update(), but does not check first if there is data available.
Definition: Subscription.hpp:180
bool update() override
Create an update function that uses the embedded struct.
Definition: Subscription.hpp:175
int orb_copy(const struct orb_metadata *meta, int handle, void *buffer)
Definition: uORB.cpp:90
Definition: uORBFastRpcChannel.hpp:44
Generally used magic defines.
The subscription base class as a list node.
Definition: Subscription.hpp:107
API for the uORB lightweight object broker.
Base subscription wrapper class, used in list traversal of various subscriptions. ...
Definition: Subscription.hpp:53
Simple error/warning functions, heavily inspired by the BSD functions of the same names...
Subscription wrapper class.
Definition: Subscription.hpp:143
Subscription(const struct orb_metadata *meta, unsigned interval=0, unsigned instance=0, List< SubscriptionNode *> *list=nullptr)
Constructor.
Definition: Subscription.hpp:156