42 #include <px4_platform_common/defines.h> 51 class SubscriptionCallback;
115 bool update(uint64_t *time,
void *dst);
174 const T &
get()
const {
return _data; }
API for the uORB lightweight object broker.
SubscriptionData(const orb_metadata *meta, uint8_t instance=0)
Constructor.
uint8_t get_instance() const
const orb_metadata * _meta
unsigned published_message_count() const
Per-object device instance.
bool updated()
Check if there is a new update.
bool is_advertised() const
Return true if this topic has been advertised.
unsigned _last_generation
Subscription's latest data generation.
orb_id_t get_topic() const
bool copy(void *dst, unsigned &generation)
Copies data and the corresponding generation from a node to the buffer provided.
Subscription(const orb_metadata *meta, uint8_t instance=0)
Constructor.
bool update(void *dst)
Update the struct.
static struct mpu9x50_data _data
IMU measurement data.
bool copy(void *dst)
Copy the struct.