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

Used for handling missing Facts from C++ code. More...

#include <FactPanelController.h>

+ Inheritance diagram for FactPanelController:
+ Collaboration diagram for FactPanelController:

Signals

void missingParametersAvailable ()
 

Protected Member Functions

bool _allParametersExists (int componentId, const QStringList &names) const
 
void _reportMissingParameter (int componentId, const QString &name) const
 Report a missing parameter.
 

Protected Attributes

Vehicle_vehicle = nullptr
 

Detailed Description

Used for handling missing Facts from C++ code.

Definition at line 15 of file FactPanelController.h.

Member Function Documentation

◆ _allParametersExists()

bool FactPanelController::_allParametersExists ( int  componentId,
const QStringList &  names 
) const
protected

Checks for existence of the specified parameters

Returns
true: all parameters exists, false: parameters missing and reported

Definition at line 43 of file FactPanelController.cc.

References _reportMissingParameter(), _vehicle, ParameterManager::parameterExists(), and Vehicle::parameterManager().

Referenced by AirframeComponentController::AirframeComponentController(), and PX4SimpleFlightModesController::PX4SimpleFlightModesController().

◆ _reportMissingParameter()

void FactPanelController::_reportMissingParameter ( int  componentId,
const QString &  name 
) const
protected

Report a missing parameter.

Definition at line 33 of file FactPanelController.cc.

References _vehicle, ParameterManager::defaultComponentId, Vehicle::defaultComponentId(), and qgcApp.

Referenced by _allParametersExists().

◆ missingParametersAvailable

void FactPanelController::missingParametersAvailable ( )
signal

Member Data Documentation

◆ _vehicle


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