|
QGroundControl
Ground Control Station for MAVLink Drones
|
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) |
| bool | healthAndArmingChecksSupported (uint8_t compid) const |
Owns per-component EventHandler instances and drives the Health & Arming Check report.
Definition at line 24 of file MAVLinkEventManager.h.
|
explicit |
Definition at line 18 of file MAVLinkEventManager.cc.
References Vehicle::flightModeChanged().
|
overridedefault |
| 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 41 of file MAVLinkEventManager.cc.
References EventHandler::handleEvents().
| HealthAndArmingCheckReport * MAVLinkEventManager::healthAndArmingCheckReport | ( | ) | const |
Definition at line 36 of file MAVLinkEventManager.cc.
| 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 46 of file MAVLinkEventManager.cc.
| void MAVLinkEventManager::setMetadata | ( | uint8_t | compid, |
| const QString & | metadataJsonFileName | ||
| ) |
Load event metadata JSON for a component, then compute takeoff and mission mode groups and publish them to the report.
Definition at line 55 of file MAVLinkEventManager.cc.
References Vehicle::firmwarePlugin(), EventHandler::getModeGroup(), Vehicle::missionFlightMode(), FirmwarePlugin::setFlightMode(), EventHandler::setMetadata(), and FirmwarePlugin::takeOffFlightMode().
|
signal |
Emitted for "default"-group events that should render as a status-text message. Vehicle routes this into its StatusTextHandler.