|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <EventHandler.h>
Inheritance diagram for EventHandler:
Collaboration diagram for EventHandler:Public Types | |
| using | send_request_event_message_f = std::function< void(const mavlink_request_event_t &msg)> |
| using | handle_event_f = std::function< void(std::unique_ptr< events::parser::ParsedEvent >)> |
Signals | |
| void | healthAndArmingChecksUpdated () |
Public Member Functions | |
| EventHandler (QObject *parent, const QString &profile, handle_event_f handleEventCB, send_request_event_message_f sendRequestCB, uint8_t ourSystemId, uint8_t ourComponentId, uint8_t systemId, uint8_t componentId) | |
| ~EventHandler () | |
| void | handleEvents (const mavlink_message_t &message) |
| void | setMetadata (const QString &metadataJsonFileName) |
| const events::HealthAndArmingChecks::Results & | healthAndArmingCheckResults () const |
| bool | healthAndArmingCheckResultsValid () const |
| int | getModeGroup (int32_t customMode) |
| bool | healthAndArmingChecksSupported () const |
Definition at line 11 of file EventHandler.h.
| using EventHandler::handle_event_f = std::function<void(std::unique_ptr<events::parser::ParsedEvent>)> |
Definition at line 16 of file EventHandler.h.
| using EventHandler::send_request_event_message_f = std::function<void(const mavlink_request_event_t& msg)> |
Definition at line 15 of file EventHandler.h.
| EventHandler::EventHandler | ( | QObject * | parent, |
| const QString & | profile, | ||
| handle_event_f | handleEventCB, | ||
| send_request_event_message_f | sendRequestCB, | ||
| uint8_t | ourSystemId, | ||
| uint8_t | ourComponentId, | ||
| uint8_t | systemId, | ||
| uint8_t | componentId | ||
| ) |
Definition at line 7 of file EventHandler.cc.
| EventHandler::~EventHandler | ( | ) |
Definition at line 49 of file EventHandler.cc.
| int EventHandler::getModeGroup | ( | int32_t | customMode | ) |
Definition at line 101 of file EventHandler.cc.
Referenced by Vehicle::setEventsMetadata().
| void EventHandler::handleEvents | ( | const mavlink_message_t & | message | ) |
Definition at line 81 of file EventHandler.cc.
|
inline |
Definition at line 28 of file EventHandler.h.
|
inline |
Definition at line 29 of file EventHandler.h.
|
inline |
Definition at line 33 of file EventHandler.h.
|
signal |
| void EventHandler::setMetadata | ( | const QString & | metadataJsonFileName | ) |
Definition at line 86 of file EventHandler.cc.
Referenced by Vehicle::setEventsMetadata().