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

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

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

Private Member Functions

 MavlinkStreamBatteryStatus (MavlinkStreamSysStatus &)=delete
 
MavlinkStreamBatteryStatusoperator= (const MavlinkStreamSysStatus &)=delete
 

Private Attributes

MavlinkOrbSubscription_battery_status_sub [ORB_MULTI_MAX_INSTANCES] {}
 
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 630 of file mavlink_messages.cpp.

Constructor & Destructor Documentation

◆ MavlinkStreamBatteryStatus() [1/2]

MavlinkStreamBatteryStatus::MavlinkStreamBatteryStatus ( MavlinkStreamSysStatus )
privatedelete

◆ MavlinkStreamBatteryStatus() [2/2]

MavlinkStreamBatteryStatus::MavlinkStreamBatteryStatus ( Mavlink mavlink)
inlineexplicitprotected

Definition at line 673 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 MavlinkStreamBatteryStatus::get_id ( )
inlineoverridevirtual

Implements MavlinkStream.

Definition at line 648 of file mavlink_messages.cpp.

References MavlinkStreamHeartbeat::get_id_static().

Here is the call graph for this function:

◆ get_id_static()

static uint16_t MavlinkStreamBatteryStatus::get_id_static ( )
inlinestatic

Definition at line 643 of file mavlink_messages.cpp.

◆ get_name()

const char* MavlinkStreamBatteryStatus::get_name ( ) const
inlineoverridevirtual

Implements MavlinkStream.

Definition at line 633 of file mavlink_messages.cpp.

References get_name_static().

Here is the call graph for this function:

◆ get_name_static()

static const char* MavlinkStreamBatteryStatus::get_name_static ( )
inlinestatic

Definition at line 638 of file mavlink_messages.cpp.

Referenced by get_name().

Here is the caller graph for this function:

◆ get_size()

unsigned MavlinkStreamBatteryStatus::get_size ( )
inlineoverridevirtual

Get maximal total messages size on update.

Implements MavlinkStream.

Definition at line 658 of file mavlink_messages.cpp.

◆ new_instance()

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

Definition at line 653 of file mavlink_messages.cpp.

◆ operator=()

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

◆ send()

bool MavlinkStreamBatteryStatus::send ( const hrt_abstime  t)
inlineoverrideprotectedvirtual

Implements MavlinkStream.

Definition at line 680 of file mavlink_messages.cpp.

References MavlinkStream::_mavlink, f(), Mavlink::get_channel(), ORB_MULTI_MAX_INSTANCES, and MavlinkStream::update().

Here is the call graph for this function:

Member Data Documentation

◆ _battery_status_sub

MavlinkOrbSubscription* MavlinkStreamBatteryStatus::_battery_status_sub[ORB_MULTI_MAX_INSTANCES] {}
private

Definition at line 664 of file mavlink_messages.cpp.

◆ _battery_status_timestamp

uint64_t MavlinkStreamBatteryStatus::_battery_status_timestamp[ORB_MULTI_MAX_INSTANCES] {}
private

Definition at line 666 of file mavlink_messages.cpp.


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