Owns per-component EventHandler instances and drives the Health & Arming Check report. More...
#include <MAVLinkEventManager.h>
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 |
Owns per-component EventHandler instances and drives the Health & Arming Check report.
Definition at line 24 of file MAVLinkEventManager.h.
|
explicit |
Definition at line 17 of file MAVLinkEventManager.cc.
References Vehicle::effectiveCustomModeChanged(), and MAVLinkEventManager().
Referenced by MAVLinkEventManager().
|
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 40 of file MAVLinkEventManager.cc.
| HealthAndArmingCheckReport * MAVLinkEventManager::healthAndArmingCheckReport | ( | ) | const |
Definition at line 35 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 45 of file MAVLinkEventManager.cc.
| 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.
| void MAVLinkEventManager::setMetadata | ( | uint8_t | compid, |
| const QString & | metadataJsonFileName ) |
Load event metadata JSON for a component.
Definition at line 54 of file MAVLinkEventManager.cc.
|
signal |
Emitted for "default"-group events that should render as a status-text message. Vehicle routes this into its StatusTextHandler.