|
QGroundControl
Ground Control Station for MAVLink Drones
|
MVC Controller for AirframeComponent.qml. More...
#include <AirframeComponentController.h>
Inheritance diagram for AirframeComponentController:
Collaboration diagram for AirframeComponentController:Signals | |
| void | autostartIdChanged (int newAutostartId) |
| void | showCustomConfigPanelChanged (bool show) |
Signals inherited from FactPanelController | |
| void | missingParametersAvailable () |
Public Member Functions | |
| AirframeComponentController (void) | |
| ~AirframeComponentController () | |
| Q_INVOKABLE void | changeAutostart (void) |
| int | currentAirframeIndex (void) |
| void | setCurrentAirframeIndex (int newIndex) |
Public Member Functions inherited from FactPanelController | |
| 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) |
Additional Inherited Members | |
Protected Member Functions inherited from FactPanelController | |
| bool | _allParametersExists (int componentId, const QStringList &names) const |
| void | _reportMissingParameter (int componentId, const QString &name) const |
| Report a missing parameter. | |
Protected Attributes inherited from FactPanelController | |
| Vehicle * | _vehicle = nullptr |
MVC Controller for AirframeComponent.qml.
Definition at line 12 of file AirframeComponentController.h.
| AirframeComponentController::AirframeComponentController | ( | void | ) |
Definition at line 18 of file AirframeComponentController.cc.
References FactPanelController::_allParametersExists(), AirframeType::addAirframe(), AirframeComponentAirframes::AirframeInfo_t::autostartId, ParameterManager::defaultComponentId, FactPanelController::getParameterFact(), AirframeComponentAirframes::AirframeInfo_t::name, Fact::rawValue(), showCustomConfigPanelChanged(), and AirframeComponentAirframes::sortedTypes().
| AirframeComponentController::~AirframeComponentController | ( | ) |
Definition at line 68 of file AirframeComponentController.cc.
|
signal |
| void AirframeComponentController::changeAutostart | ( | void | ) |
Definition at line 73 of file AirframeComponentController.cc.
References Fact::forceSetRawValue(), FactPanelController::getParameterFact(), MultiVehicleManager::instance(), QGC::showAppMessage(), and Fact::vehicleUpdated().
| int AirframeComponentController::currentAirframeIndex | ( | void | ) |
| void AirframeComponentController::setCurrentAirframeIndex | ( | int | newIndex | ) |
|
signal |
Referenced by AirframeComponentController().