PX4 Firmware
PX4 Autopilot Software http://px4.io
uORB::PublicationQueued< T > Class Template Reference

Queued publication with queue length set as a message constant (ORB_QUEUE_LENGTH) More...

#include <PublicationQueued.hpp>

Collaboration diagram for uORB::PublicationQueued< T >:

Public Member Functions

 PublicationQueued (const orb_metadata *meta)
 Constructor. More...
 
 ~PublicationQueued ()
 
bool publish (const T &data)
 Publish the struct. More...
 

Protected Attributes

const orb_metadata_meta
 
orb_advert_t _handle {nullptr}
 

Detailed Description

template<typename T>
class uORB::PublicationQueued< T >

Queued publication with queue length set as a message constant (ORB_QUEUE_LENGTH)

Definition at line 52 of file PublicationQueued.hpp.

Constructor & Destructor Documentation

◆ PublicationQueued()

template<typename T>
uORB::PublicationQueued< T >::PublicationQueued ( const orb_metadata meta)
inline

Constructor.

Parameters
metaThe uORB metadata (usually from the ORB_ID() macro) for the topic.

Definition at line 61 of file PublicationQueued.hpp.

◆ ~PublicationQueued()

template<typename T>
uORB::PublicationQueued< T >::~PublicationQueued ( )
inline

Definition at line 62 of file PublicationQueued.hpp.

Member Function Documentation

◆ publish()

template<typename T>
bool uORB::PublicationQueued< T >::publish ( const T &  data)
inline

Member Data Documentation

◆ _handle

template<typename T>
orb_advert_t uORB::PublicationQueued< T >::_handle {nullptr}
protected

◆ _meta

template<typename T>
const orb_metadata* uORB::PublicationQueued< T >::_meta
protected

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