Firmware
Public Member Functions | List of all members
SubscriptionArray Class Reference

Public Member Functions

template<class T >
bool get (const struct orb_metadata *meta, uORB::Subscription< T > *&subscription, unsigned instance=0)
 Get a subscription. More...
 
void update ()
 update all subscriptions (if new data is available)
 
void forcedUpdate ()
 update all subscriptions
 

Member Function Documentation

§ get()

template<class T >
bool SubscriptionArray::get ( const struct orb_metadata meta,
uORB::Subscription< T > *&  subscription,
unsigned  instance = 0 
)

Get a subscription.

Parameters
metaORB_ID(topic)
subscriptionreturned subscription (output parameter)
instancetopic instance
Returns
true on success, false otherwise (subscription set to nullptr)

The documentation for this class was generated from the following files: