QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
MAVLinkEventManager Class Reference

Owns per-component EventHandler instances and drives the Health & Arming Check report. More...

#include <MAVLinkEventManager.h>

Inheritance diagram for MAVLinkEventManager:
Collaboration diagram for MAVLinkEventManager:

Signals

void statusTextMessageFromEvent (uint8_t compid, int severity, const QString &text, const QString &description)

Public Member Functions

 MAVLinkEventManager (Vehicle *vehicle)
 ~MAVLinkEventManager () override
HealthAndArmingCheckReport * healthAndArmingCheckReport () const
void handleEventMessage (const mavlink_message_t &message)
void setMetadata (uint8_t compid, const QString &metadataJsonFileName)
 Load event metadata JSON for a component.
int modeGroup (uint8_t compid, uint32_t customMode) const
bool healthAndArmingChecksSupported (uint8_t compid) const

Detailed Description

Owns per-component EventHandler instances and drives the Health & Arming Check report.

Definition at line 24 of file MAVLinkEventManager.h.

Constructor & Destructor Documentation

◆ MAVLinkEventManager()

MAVLinkEventManager::MAVLinkEventManager ( Vehicle * vehicle)
explicit

◆ ~MAVLinkEventManager()

MAVLinkEventManager::~MAVLinkEventManager ( )
overridedefault

Member Function Documentation

◆ handleEventMessage()

void MAVLinkEventManager::handleEventMessage ( const mavlink_message_t & message)

Route MAVLink event protocol messages (EVENT, CURRENT_EVENT_SEQUENCE, RESPONSE_EVENT_ERROR) to the EventHandler for the source component.

Definition at line 40 of file MAVLinkEventManager.cc.

◆ healthAndArmingCheckReport()

HealthAndArmingCheckReport * MAVLinkEventManager::healthAndArmingCheckReport ( ) const

Definition at line 35 of file MAVLinkEventManager.cc.

◆ healthAndArmingChecksSupported()

bool MAVLinkEventManager::healthAndArmingChecksSupported ( uint8_t compid) const

True if an EventHandler already exists for this component and it reports the health_and_arming_check protocol as supported.

Definition at line 45 of file MAVLinkEventManager.cc.

◆ modeGroup()

int MAVLinkEventManager::modeGroup ( uint8_t compid,
uint32_t customMode ) const

Health and arming check mode group of a custom mode, from the component's metadata. -1 if the component or mode is unknown.

Definition at line 59 of file MAVLinkEventManager.cc.

◆ setMetadata()

void MAVLinkEventManager::setMetadata ( uint8_t compid,
const QString & metadataJsonFileName )

Load event metadata JSON for a component.

Definition at line 54 of file MAVLinkEventManager.cc.

◆ statusTextMessageFromEvent

void MAVLinkEventManager::statusTextMessageFromEvent ( uint8_t compid,
int severity,
const QString & text,
const QString & description )
signal

Emitted for "default"-group events that should render as a status-text message. Vehicle routes this into its StatusTextHandler.


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