42 #include <px4_platform_common/defines.h> bool copy(void *dst)
Copy the struct.
bool update(void *dst)
Copy the struct if updated.
Subscription _subscription
API for the uORB lightweight object broker.
bool updated()
Check if there is a new update.
~SubscriptionInterval()=default
uint8_t get_instance() const
void set_interval_us(uint32_t interval)
Set the interval in microseconds.
void set_interval_ms(uint32_t interval)
Set the interval in milliseconds.
SubscriptionInterval(const orb_metadata *meta, uint32_t interval_us=0, uint8_t instance=0)
Constructor.
static hrt_abstime hrt_elapsed_time(const hrt_abstime *then)
Compute the delta between a timestamp taken in the past and now.
bool updated()
Check if there is a new update.
orb_id_t get_topic() const
uint8_t get_instance() const
bool copy(void *dst)
Copy the struct.
orb_id_t get_topic() const
__EXPORT hrt_abstime hrt_absolute_time(void)
Get absolute time in [us] (does not wrap).