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

The publication multi class with data embedded. More...

#include <PublicationMulti.hpp>

Inheritance diagram for uORB::PublicationMultiData< T >:
Collaboration diagram for uORB::PublicationMultiData< T >:

Public Member Functions

 PublicationMultiData (const orb_metadata *meta, uint8_t priority=ORB_PRIO_DEFAULT)
 Constructor. More...
 
 ~PublicationMultiData ()=default
 
T & get ()
 
void set (const T &data)
 
bool update ()
 
bool update (const T &data)
 
- Public Member Functions inherited from uORB::PublicationMulti< T >
 PublicationMulti (const orb_metadata *meta, uint8_t priority=ORB_PRIO_DEFAULT)
 Constructor. More...
 
 ~PublicationMulti ()
 
bool publish (const T &data)
 Publish the struct. More...
 

Private Attributes

_data {}
 

Additional Inherited Members

- Protected Attributes inherited from uORB::PublicationMulti< T >
const orb_metadata_meta
 
orb_advert_t _handle {nullptr}
 
const uint8_t _priority
 

Detailed Description

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

The publication multi class with data embedded.

Definition at line 103 of file PublicationMulti.hpp.

Constructor & Destructor Documentation

◆ PublicationMultiData()

template<typename T>
uORB::PublicationMultiData< T >::PublicationMultiData ( const orb_metadata meta,
uint8_t  priority = ORB_PRIO_DEFAULT 
)
inline

Constructor.

Parameters
metaThe uORB metadata (usually from the ORB_ID() macro) for the topic.
priorityThe priority for multi pub

Definition at line 112 of file PublicationMulti.hpp.

◆ ~PublicationMultiData()

template<typename T>
uORB::PublicationMultiData< T >::~PublicationMultiData ( )
default

Member Function Documentation

◆ get()

template<typename T>
T& uORB::PublicationMultiData< T >::get ( )
inline

◆ set()

template<typename T>
void uORB::PublicationMultiData< T >::set ( const T &  data)
inline

Definition at line 119 of file PublicationMulti.hpp.

◆ update() [1/2]

template<typename T>
bool uORB::PublicationMultiData< T >::update ( )
inline

Definition at line 122 of file PublicationMulti.hpp.

Referenced by PX4Barometer::update(), PX4Magnetometer::update(), PX4Accelerometer::update(), PX4Gyroscope::update(), and PX4Rangefinder::update().

Here is the caller graph for this function:

◆ update() [2/2]

template<typename T>
bool uORB::PublicationMultiData< T >::update ( const T &  data)
inline

Definition at line 123 of file PublicationMulti.hpp.

Member Data Documentation

◆ _data

template<typename T>
T uORB::PublicationMultiData< T >::_data {}
private

Definition at line 130 of file PublicationMulti.hpp.


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