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

#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
 

Detailed Description

Definition at line 11 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 16 of file EventHandler.h.

◆ send_request_event_message_f

using EventHandler::send_request_event_message_f = std::function<void(const mavlink_request_event_t& msg)>

Definition at line 15 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 7 of file EventHandler.cc.

◆ ~EventHandler()

EventHandler::~EventHandler ( )

Definition at line 49 of file EventHandler.cc.

Member Function Documentation

◆ getModeGroup()

int EventHandler::getModeGroup ( int32_t  customMode)

Definition at line 101 of file EventHandler.cc.

Referenced by Vehicle::setEventsMetadata().

◆ handleEvents()

void EventHandler::handleEvents ( const mavlink_message_t message)

Definition at line 81 of file EventHandler.cc.

◆ healthAndArmingCheckResults()

const events::HealthAndArmingChecks::Results & EventHandler::healthAndArmingCheckResults ( ) const
inline

Definition at line 28 of file EventHandler.h.

◆ healthAndArmingCheckResultsValid()

bool EventHandler::healthAndArmingCheckResultsValid ( ) const
inline

Definition at line 29 of file EventHandler.h.

◆ healthAndArmingChecksSupported()

bool EventHandler::healthAndArmingChecksSupported ( ) const
inline

Definition at line 33 of file EventHandler.h.

◆ healthAndArmingChecksUpdated

void EventHandler::healthAndArmingChecksUpdated ( )
signal

◆ setMetadata()

void EventHandler::setMetadata ( const QString &  metadataJsonFileName)

Definition at line 86 of file EventHandler.cc.

Referenced by Vehicle::setEventsMetadata().


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