PX4 Firmware
PX4 Autopilot Software http://px4.io
|
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 MavlinkStream | |
MavlinkStream (Mavlink *mavlink) | |
virtual | ~MavlinkStream ()=default |
MavlinkStream (const MavlinkStream &)=delete | |
MavlinkStream & | operator= (const MavlinkStream &)=delete |
MavlinkStream (MavlinkStream &&)=delete | |
MavlinkStream & | operator= (MavlinkStream &&)=delete |
void | set_interval (const int interval) |
Get the interval. More... | |
int | get_interval () |
Get the interval. More... | |
int | update (const hrt_abstime &t) |
Update subscriptions and send message if necessary. More... | |
virtual bool | const_rate () |
virtual unsigned | get_size_avg () |
Get the average message size. More... | |
bool | first_message_sent () const |
void | reset_last_sent () |
Reset the time of last sent to 0. More... | |
Public Member Functions inherited from ListNode< MavlinkStream *> | |
void | setSibling (MavlinkStream * sibling) |
const MavlinkStream * | getSibling () const |
Static Public Member Functions | |
static const char * | get_name_static () |
static uint16_t | get_id_static () |
static MavlinkStream * | new_instance (Mavlink *mavlink) |
Protected Member Functions | |
MavlinkStreamSysStatus (Mavlink *mavlink) | |
bool | send (const hrt_abstime t) override |
Protected Member Functions inherited from MavlinkStream | |
virtual void | update_data () |
Function to collect/update data for the streams at a high rate independant of actual stream rate. More... | |
Private Member Functions | |
MavlinkStreamSysStatus (MavlinkStreamSysStatus &)=delete | |
MavlinkStreamSysStatus & | operator= (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 MavlinkStream | |
Mavlink *const | _mavlink |
int | _interval {1000000} |
if set to negative value = unlimited rate More... | |
Protected Attributes inherited from ListNode< MavlinkStream *> | |
MavlinkStream * | _list_node_sibling |
Definition at line 512 of file mavlink_messages.cpp.
|
privatedelete |
|
inlineexplicitprotected |
Definition at line 559 of file mavlink_messages.cpp.
References MavlinkStream::_mavlink, Mavlink::add_orb_subscription(), ORB_ID, and ORB_MULTI_MAX_INSTANCES.
|
inlineoverridevirtual |
Implements MavlinkStream.
Definition at line 530 of file mavlink_messages.cpp.
References MavlinkStreamHeartbeat::get_id_static().
|
inlinestatic |
Definition at line 525 of file mavlink_messages.cpp.
|
inlineoverridevirtual |
Implements MavlinkStream.
Definition at line 515 of file mavlink_messages.cpp.
References get_name_static().
|
inlinestatic |
Definition at line 520 of file mavlink_messages.cpp.
Referenced by get_name().
|
inlineoverridevirtual |
Get maximal total messages size on update.
Implements MavlinkStream.
Definition at line 540 of file mavlink_messages.cpp.
|
inlinestatic |
Definition at line 535 of file mavlink_messages.cpp.
|
privatedelete |
|
inlineoverrideprotectedvirtual |
Implements MavlinkStream.
Definition at line 569 of file mavlink_messages.cpp.
References MavlinkStream::_mavlink, battery_status_s::connected, cpuload, battery_status_s::current_filtered_a, Mavlink::get_channel(), cpuload_s::load, msg, vehicle_status_s::onboard_control_sensors_enabled, vehicle_status_s::onboard_control_sensors_health, vehicle_status_s::onboard_control_sensors_present, ORB_MULTI_MAX_INSTANCES, battery_status_s::remaining, status, MavlinkOrbSubscription::update(), MavlinkStream::update(), and battery_status_s::voltage_filtered_v.
|
private |
Definition at line 548 of file mavlink_messages.cpp.
|
private |
Definition at line 552 of file mavlink_messages.cpp.
|
private |
Definition at line 547 of file mavlink_messages.cpp.
|
private |
Definition at line 551 of file mavlink_messages.cpp.
|
private |
Definition at line 546 of file mavlink_messages.cpp.
|
private |
Definition at line 550 of file mavlink_messages.cpp.