PX4 Firmware
PX4 Autopilot Software http://px4.io
MavlinkStreamSysStatus Class Reference
Inheritance diagram for MavlinkStreamSysStatus:
Collaboration diagram for MavlinkStreamSysStatus:

Public Member Functions

const char * get_name () const override
 
uint16_t get_id () override
 
unsigned get_size () override
 Get maximal total messages size on update. More...
 
- Public Member Functions inherited from ListNode< MavlinkStream *>
void setSibling (MavlinkStream * sibling)
 
const MavlinkStreamgetSibling () const
 

Static Public Member Functions

static const char * get_name_static ()
 
static uint16_t get_id_static ()
 
static MavlinkStreamnew_instance (Mavlink *mavlink)
 

Protected Member Functions

 MavlinkStreamSysStatus (Mavlink *mavlink)
 
bool send (const hrt_abstime t) override
 

Private Member Functions

 MavlinkStreamSysStatus (MavlinkStreamSysStatus &)=delete
 
MavlinkStreamSysStatusoperator= (const MavlinkStreamSysStatus &)=delete
 

Private Attributes

MavlinkOrbSubscription_status_sub
 
MavlinkOrbSubscription_cpuload_sub
 
MavlinkOrbSubscription_battery_status_sub [ORB_MULTI_MAX_INSTANCES]
 
uint64_t _status_timestamp {0}
 
uint64_t _cpuload_timestamp {0}
 
uint64_t _battery_status_timestamp [ORB_MULTI_MAX_INSTANCES] {}
 

Additional Inherited Members

- Protected Attributes inherited from ListNode< MavlinkStream *>
MavlinkStream_list_node_sibling
 

Detailed Description

Definition at line 512 of file mavlink_messages.cpp.

Constructor & Destructor Documentation

◆ MavlinkStreamSysStatus() [1/2]

MavlinkStreamSysStatus::MavlinkStreamSysStatus ( MavlinkStreamSysStatus )
privatedelete

◆ MavlinkStreamSysStatus() [2/2]

MavlinkStreamSysStatus::MavlinkStreamSysStatus ( Mavlink mavlink)
inlineexplicitprotected

Definition at line 559 of file mavlink_messages.cpp.

References MavlinkStream::_mavlink, Mavlink::add_orb_subscription(), ORB_ID, and ORB_MULTI_MAX_INSTANCES.

Here is the call graph for this function:

Member Function Documentation

◆ get_id()

uint16_t MavlinkStreamSysStatus::get_id ( )
inlineoverridevirtual

Implements MavlinkStream.

Definition at line 530 of file mavlink_messages.cpp.

References MavlinkStreamHeartbeat::get_id_static().

Here is the call graph for this function:

◆ get_id_static()

static uint16_t MavlinkStreamSysStatus::get_id_static ( )
inlinestatic

Definition at line 525 of file mavlink_messages.cpp.

◆ get_name()

const char* MavlinkStreamSysStatus::get_name ( ) const
inlineoverridevirtual

Implements MavlinkStream.

Definition at line 515 of file mavlink_messages.cpp.

References get_name_static().

Here is the call graph for this function:

◆ get_name_static()

static const char* MavlinkStreamSysStatus::get_name_static ( )
inlinestatic

Definition at line 520 of file mavlink_messages.cpp.

Referenced by get_name().

Here is the caller graph for this function:

◆ get_size()

unsigned MavlinkStreamSysStatus::get_size ( )
inlineoverridevirtual

Get maximal total messages size on update.

Implements MavlinkStream.

Definition at line 540 of file mavlink_messages.cpp.

◆ new_instance()

static MavlinkStream* MavlinkStreamSysStatus::new_instance ( Mavlink mavlink)
inlinestatic

Definition at line 535 of file mavlink_messages.cpp.

◆ operator=()

MavlinkStreamSysStatus& MavlinkStreamSysStatus::operator= ( const MavlinkStreamSysStatus )
privatedelete

◆ send()

Member Data Documentation

◆ _battery_status_sub

MavlinkOrbSubscription* MavlinkStreamSysStatus::_battery_status_sub[ORB_MULTI_MAX_INSTANCES]
private

Definition at line 548 of file mavlink_messages.cpp.

◆ _battery_status_timestamp

uint64_t MavlinkStreamSysStatus::_battery_status_timestamp[ORB_MULTI_MAX_INSTANCES] {}
private

Definition at line 552 of file mavlink_messages.cpp.

◆ _cpuload_sub

MavlinkOrbSubscription* MavlinkStreamSysStatus::_cpuload_sub
private

Definition at line 547 of file mavlink_messages.cpp.

◆ _cpuload_timestamp

uint64_t MavlinkStreamSysStatus::_cpuload_timestamp {0}
private

Definition at line 551 of file mavlink_messages.cpp.

◆ _status_sub

MavlinkOrbSubscription* MavlinkStreamSysStatus::_status_sub
private

Definition at line 546 of file mavlink_messages.cpp.

◆ _status_timestamp

uint64_t MavlinkStreamSysStatus::_status_timestamp {0}
private

Definition at line 550 of file mavlink_messages.cpp.


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