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

Drives the MAVLink events protocol for a single component. More...

#include <EventHandler.h>

+ Inheritance diagram for EventHandler:
+ Collaboration diagram for EventHandler:

Classes

struct  Impl
 

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 () override
 
void handleEvents (const mavlink_message_t &message)
 
void setMetadata (const QString &metadataJsonFileName)
 
const events::HealthAndArmingChecks * healthAndArmingChecks () const
 
bool healthAndArmingCheckResultsValid () const
 
int getModeGroup (int32_t customMode) const
 
bool healthAndArmingChecksSupported () const
 

Detailed Description

Drives the MAVLink events protocol for a single component.

Definition at line 21 of file EventHandler.h.

Member Typedef Documentation

◆ handle_event_f

using EventHandler::handle_event_f = std::function<void(std::unique_ptr<events::parser::ParsedEvent>)>

Definition at line 27 of file EventHandler.h.

◆ send_request_event_message_f

Definition at line 26 of file EventHandler.h.

Constructor & Destructor Documentation

◆ EventHandler()

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 113 of file EventHandler.cc.

◆ ~EventHandler()

EventHandler::~EventHandler ( )
overridedefault

Member Function Documentation

◆ getModeGroup()

int EventHandler::getModeGroup ( int32_t  customMode) const

Definition at line 160 of file EventHandler.cc.

Referenced by MAVLinkEventManager::setMetadata().

◆ handleEvents()

void EventHandler::handleEvents ( const mavlink_message_t message)

Definition at line 130 of file EventHandler.cc.

Referenced by MAVLinkEventManager::handleEventMessage().

◆ healthAndArmingCheckResultsValid()

bool EventHandler::healthAndArmingCheckResultsValid ( ) const

Definition at line 155 of file EventHandler.cc.

◆ healthAndArmingChecks()

const events::HealthAndArmingChecks * EventHandler::healthAndArmingChecks ( ) const

Definition at line 150 of file EventHandler.cc.

Referenced by HealthAndArmingCheckReport::update().

◆ healthAndArmingChecksSupported()

bool EventHandler::healthAndArmingChecksSupported ( ) const

Definition at line 171 of file EventHandler.cc.

◆ healthAndArmingChecksUpdated

void EventHandler::healthAndArmingChecksUpdated ( )
signal

◆ setMetadata()

void EventHandler::setMetadata ( const QString &  metadataJsonFileName)

Definition at line 135 of file EventHandler.cc.

Referenced by MAVLinkEventManager::setMetadata().


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