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 ()
 

Public Member Functions

 FactPanelController (QObject *parent=nullptr)
 
virtual ~FactPanelController ()
 
Q_INVOKABLE FactgetParameterFact (int componentId, const QString &name, bool reportMissing=true) const
 
Q_INVOKABLE bool parameterExists (int componentId, const QString &name) const
 
Q_INVOKABLE void getMissingParameters (const QStringList &rgNames)
 

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 13 of file FactPanelController.h.

Constructor & Destructor Documentation

◆ FactPanelController()

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

◆ ~FactPanelController()

FactPanelController::~FactPanelController ( )
virtual

Definition at line 28 of file FactPanelController.cc.

Member Function Documentation

◆ _allParametersExists()

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

◆ _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(), and getParameterFact().

◆ getMissingParameters()

void FactPanelController::getMissingParameters ( const QStringList &  rgNames)

Queries the vehicle for parameters which were not available on initial download but should be available now. Signals missingParametersAvailable when done. Only works for MAV_COMP_ID_AUTOPILOT1 parameters.

Definition at line 77 of file FactPanelController.cc.

References _vehicle, Vehicle::parameterManager(), and ParameterManager::refreshParameter().

◆ getParameterFact()

◆ missingParametersAvailable

void FactPanelController::missingParametersAvailable ( )
signal

◆ parameterExists()

Member Data Documentation

◆ _vehicle

Vehicle* FactPanelController::_vehicle = nullptr
protected

Definition at line 43 of file FactPanelController.h.

Referenced by _allParametersExists(), _reportMissingParameter(), APMFlightModesComponentController::APMFlightModesComponentController(), APMSubMotorComponentController::APMSubMotorComponentController(), ParameterEditorController::buildDiffFromFile(), APMSensorsComponentController::calibrateAccel(), SensorsComponentController::calibrateAccel(), SensorsComponentController::calibrateAirspeed(), APMSensorsComponentController::calibrateCompass(), SensorsComponentController::calibrateCompass(), APMSensorsComponentController::calibrateCompassNorth(), PowerComponentController::calibrateEsc(), APMSensorsComponentController::calibrateGyro(), SensorsComponentController::calibrateGyro(), SensorsComponentController::calibrateLevel(), APMSensorsComponentController::calibrateMotorInterference(), APMSensorsComponentController::calibratePressure(), APMSensorsComponentController::cancelCalibration(), SensorsComponentController::cancelCalibration(), RemoteControlCalibrationController::copyTrims(), RadioComponentController::crsfBindMode(), ESP8266ComponentController::ESP8266ComponentController(), getMissingParameters(), getParameterFact(), APMSensorsComponentController::levelHorizon(), APMSensorsComponentController::nextClicked(), parameterExists(), PX4SimpleFlightModesController::PX4SimpleFlightModesController(), SensorsComponentController::resetFactoryParameters(), APMFollowComponentController::roverFirmware(), RadioComponentController::spektrumBindMode(), RadioComponentController::start(), PowerComponentController::startBusConfigureActuators(), PowerComponentController::stopBusConfigureActuators(), APMSensorsComponentController::usingUDPLink(), SensorsComponentController::usingUDPLink(), ESP8266ComponentController::vehicle(), SyslinkComponentController::vehicle(), and RadioComponentController::~RadioComponentController().


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