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
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, quint32 ourSystemId, uint8_t ourComponentId, quint32 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 28 of file EventHandler.h.

◆ send_request_event_message_f

Initial value:
std::function<void(const mavlink_request_event_t& msg, uint32_t targetSystemId)>
struct __mavlink_request_event_t mavlink_request_event_t

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,
quint32 ourSystemId,
uint8_t ourComponentId,
quint32 systemId,
uint8_t componentId )

Definition at line 110 of file EventHandler.cc.

Referenced by EventHandler::Impl::Impl().

◆ ~EventHandler()

EventHandler::~EventHandler ( )
overridedefault

Member Function Documentation

◆ getModeGroup()

int EventHandler::getModeGroup ( int32_t customMode) const

Definition at line 151 of file EventHandler.cc.

◆ handleEvents()

void EventHandler::handleEvents ( const mavlink_message_t & message)

Definition at line 121 of file EventHandler.cc.

◆ healthAndArmingCheckResultsValid()

bool EventHandler::healthAndArmingCheckResultsValid ( ) const

Definition at line 146 of file EventHandler.cc.

◆ healthAndArmingChecks()

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

Definition at line 141 of file EventHandler.cc.

Referenced by HealthAndArmingCheckReport::update().

◆ healthAndArmingChecksSupported()

bool EventHandler::healthAndArmingChecksSupported ( ) const

Definition at line 162 of file EventHandler.cc.

◆ healthAndArmingChecksUpdated

void EventHandler::healthAndArmingChecksUpdated ( )
signal

◆ setMetadata()

void EventHandler::setMetadata ( const QString & metadataJsonFileName)

Definition at line 126 of file EventHandler.cc.


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