|
QGroundControl
Ground Control Station for MAVLink Drones
|
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 Fact * | getParameterFact (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 |
Used for handling missing Facts from C++ code.
Definition at line 13 of file FactPanelController.h.
|
explicit |
Definition at line 13 of file FactPanelController.cc.
References MultiVehicleManager::instance(), and MultiVehicleManager::offlineEditingVehicle().
|
virtual |
Definition at line 28 of file FactPanelController.cc.
|
protected |
Checks for existence of the specified parameters
Definition at line 43 of file FactPanelController.cc.
References _reportMissingParameter(), _vehicle, ParameterManager::parameterExists(), and Vehicle::parameterManager().
Referenced by AirframeComponentController::AirframeComponentController(), APMFlightModesComponentController::APMFlightModesComponentController(), and PX4SimpleFlightModesController::PX4SimpleFlightModesController().
|
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().
| 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().
| Fact * FactPanelController::getParameterFact | ( | int | componentId, |
| const QString & | name, | ||
| bool | reportMissing = true |
||
| ) | const |
Definition at line 57 of file FactPanelController.cc.
References _reportMissingParameter(), _vehicle, ParameterManager::getParameter(), ParameterManager::parameterExists(), and Vehicle::parameterManager().
Referenced by AirframeComponentController::AirframeComponentController(), ESP8266ComponentController::baudIndex(), AirframeComponentController::changeAutostart(), ESP8266ComponentController::version(), and ESP8266ComponentController::wifiIPAddress().
|
signal |
| bool FactPanelController::parameterExists | ( | int | componentId, |
| const QString & | name | ||
| ) | const |
Definition at line 72 of file FactPanelController.cc.
References _vehicle, ParameterManager::parameterExists(), and Vehicle::parameterManager().
Referenced by APMFlightModesComponentController::APMFlightModesComponentController(), ESP8266ComponentController::setWifiPasswordSta(), ESP8266ComponentController::setWifiSSIDSta(), ESP8266ComponentController::wifiIPAddress(), ESP8266ComponentController::wifiPasswordSta(), and ESP8266ComponentController::wifiSSIDSta().
|
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().