|
QGroundControl
Ground Control Station for MAVLink Drones
|
The AutoPilotPlugin class is an abstract base class which represents the methods and objects which are specific to a certain AutoPilot. More...
#include <AutoPilotPlugin.h>
Inheritance diagram for AutoPilotPlugin:
Collaboration diagram for AutoPilotPlugin:Signals | |
| void | setupCompleteChanged () |
| void | vehicleComponentsChanged () |
Public Member Functions | |
| AutoPilotPlugin (Vehicle *vehicle, QObject *parent=nullptr) | |
| < false: One or more vehicle components require setup | |
| virtual | ~AutoPilotPlugin () |
| virtual void | parametersReadyPreChecks () |
| virtual const QVariantList & | vehicleComponents ()=0 |
| virtual Q_INVOKABLE QString | prerequisiteSetup (VehicleComponent *component) const =0 |
| Returns the name of the vehicle component which must complete setup prior to this one. Empty string for none. | |
| Q_INVOKABLE bool | knownVehicleComponentAvailable (KnownVehicleComponent knownVehicleComponent) |
| Returns true if the vehicle component is available for the vehicle. Customs build have different components. | |
| Q_INVOKABLE VehicleComponent * | findKnownVehicleComponent (KnownVehicleComponent knownVehicleComponent) |
| Returns the VehicleComponent for the knownVehicleComponent. Returns nullptr if not available. | |
| bool | setupComplete () const |
Protected Attributes | |
| Vehicle * | _vehicle = nullptr |
| FirmwarePlugin * | _firmwarePlugin = nullptr |
| bool | _setupComplete = false |
The AutoPilotPlugin class is an abstract base class which represents the methods and objects which are specific to a certain AutoPilot.
This is the only place where AutoPilot specific code should reside in QGroundControl. The remainder of the QGroundControl source is generic to a common mavlink implementation.
Definition at line 18 of file AutoPilotPlugin.h.
Definition at line 31 of file AutoPilotPlugin.h.
|
explicit |
< false: One or more vehicle components require setup
< List of VehicleComponent objects
Definition at line 13 of file AutoPilotPlugin.cc.
|
virtual |
Definition at line 21 of file AutoPilotPlugin.cc.
| VehicleComponent * AutoPilotPlugin::findKnownVehicleComponent | ( | KnownVehicleComponent | knownVehicleComponent | ) |
Returns the VehicleComponent for the knownVehicleComponent. Returns nullptr if not available.
Definition at line 70 of file AutoPilotPlugin.cc.
References VehicleComponent::KnownVehicleComponent(), UnknownVehicleComponent, and vehicleComponents().
Referenced by knownVehicleComponentAvailable().
|
inline |
Returns true if the vehicle component is available for the vehicle. Customs build have different components.
Definition at line 54 of file AutoPilotPlugin.h.
References findKnownVehicleComponent().
|
virtual |
Called when parameters are ready for the first time. Note that parameters may still be missing. Overrides must call base class.
Reimplemented in PX4AutoPilotPlugin.
Definition at line 48 of file AutoPilotPlugin.cc.
References _setupComplete, qgcApp, VehicleComponent::setupCompleteChanged(), QGC::showAppMessage(), and vehicleComponents().
Referenced by PX4AutoPilotPlugin::parametersReadyPreChecks().
|
pure virtual |
Returns the name of the vehicle component which must complete setup prior to this one. Empty string for none.
Implemented in GenericAutoPilotPlugin, APMAutoPilotPlugin, and PX4AutoPilotPlugin.
|
inline |
Definition at line 59 of file AutoPilotPlugin.h.
References _setupComplete.
|
signal |
|
pure virtual |
Implemented in GenericAutoPilotPlugin, APMAutoPilotPlugin, and PX4AutoPilotPlugin.
Referenced by findKnownVehicleComponent(), and parametersReadyPreChecks().
|
signal |
|
protected |
Definition at line 67 of file AutoPilotPlugin.h.
|
protected |
Definition at line 68 of file AutoPilotPlugin.h.
Referenced by parametersReadyPreChecks(), and setupComplete().
|
protected |
Definition at line 66 of file AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin::parametersReadyPreChecks(), PX4AutoPilotPlugin::prerequisiteSetup(), GenericAutoPilotPlugin::vehicleComponents(), APMAutoPilotPlugin::vehicleComponents(), and PX4AutoPilotPlugin::vehicleComponents().