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

#include <HealthAndArmingCheckReport.h>

Inheritance diagram for HealthAndArmingCheckReport:
Collaboration diagram for HealthAndArmingCheckReport:

Classes

struct  ModeGroupResults

Signals

void updated ()

Public Member Functions

 HealthAndArmingCheckReport (QObject *parent=nullptr)
 ~HealthAndArmingCheckReport () override
bool supported () const
const ModeGroupResults & modeGroupResults () const
bool hasWarningsOrErrors () const
int errorCount () const
int warningCount () const
 Unacknowledged warnings only.
const QString & gpsState () const
QmlObjectListModel * problemsForCurrentMode ()
void update (uint8_t compid, const EventHandler &eventHandler, int flightModeGroup)
Q_INVOKABLE void acknowledgeAllWarnings ()

Static Public Attributes

static constexpr int MaxModeGroups = 64

Friends

class HealthAndArmingCheckReportTest

Detailed Description

Definition at line 50 of file HealthAndArmingCheckReport.h.

Constructor & Destructor Documentation

◆ HealthAndArmingCheckReport()

HealthAndArmingCheckReport::HealthAndArmingCheckReport ( QObject * parent = nullptr)
explicit

Definition at line 29 of file HealthAndArmingCheckReport.cc.

◆ ~HealthAndArmingCheckReport()

HealthAndArmingCheckReport::~HealthAndArmingCheckReport ( )
override

Definition at line 36 of file HealthAndArmingCheckReport.cc.

Member Function Documentation

◆ acknowledgeAllWarnings()

void HealthAndArmingCheckReport::acknowledgeAllWarnings ( )

Acknowledges the warnings for the current mode so they no longer count toward the warning state. An acknowledgement is dropped once its check stops being a warning or is missing from a report.

Definition at line 115 of file HealthAndArmingCheckReport.cc.

References updated().

◆ errorCount()

int HealthAndArmingCheckReport::errorCount ( ) const
inline

Definition at line 82 of file HealthAndArmingCheckReport.h.

Referenced by hasWarningsOrErrors().

◆ gpsState()

const QString & HealthAndArmingCheckReport::gpsState ( ) const
inline

Definition at line 86 of file HealthAndArmingCheckReport.h.

Referenced by update().

◆ hasWarningsOrErrors()

bool HealthAndArmingCheckReport::hasWarningsOrErrors ( ) const
inline

Definition at line 80 of file HealthAndArmingCheckReport.h.

References errorCount(), and warningCount().

◆ modeGroupResults()

const ModeGroupResults & HealthAndArmingCheckReport::modeGroupResults ( ) const
inline

Definition at line 78 of file HealthAndArmingCheckReport.h.

◆ problemsForCurrentMode()

QmlObjectListModel * HealthAndArmingCheckReport::problemsForCurrentMode ( )
inline

Definition at line 87 of file HealthAndArmingCheckReport.h.

◆ supported()

bool HealthAndArmingCheckReport::supported ( ) const
inline

Definition at line 76 of file HealthAndArmingCheckReport.h.

◆ update()

void HealthAndArmingCheckReport::update ( uint8_t compid,
const EventHandler & eventHandler,
int flightModeGroup )

◆ updated

void HealthAndArmingCheckReport::updated ( )
signal

◆ warningCount()

int HealthAndArmingCheckReport::warningCount ( ) const
inline

Unacknowledged warnings only.

Definition at line 85 of file HealthAndArmingCheckReport.h.

Referenced by hasWarningsOrErrors().

◆ HealthAndArmingCheckReportTest

friend class HealthAndArmingCheckReportTest
friend

Member Data Documentation

◆ MaxModeGroups

int HealthAndArmingCheckReport::MaxModeGroups = 64
staticconstexpr

Definition at line 74 of file HealthAndArmingCheckReport.h.

Referenced by update().


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