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

This is the AutoPilotPlugin implementation for the MAV_AUTOPILOT_ARDUPILOT type. More...

#include <APMAutoPilotPlugin.h>

+ Inheritance diagram for APMAutoPilotPlugin:
+ Collaboration diagram for APMAutoPilotPlugin:

Public Member Functions

 APMAutoPilotPlugin (Vehicle *vehicle, QObject *parent=nullptr)
 
 ~APMAutoPilotPlugin ()
 
const QVariantList & vehicleComponents () override
 
QString prerequisiteSetup (VehicleComponent *component) const override
 Returns the name of the vehicle component which must complete setup prior to this one. Empty string for none.
 
- Public Member Functions inherited from AutoPilotPlugin
 AutoPilotPlugin (Vehicle *vehicle, QObject *parent=nullptr)
 < false: One or more vehicle components require setup
 
virtual ~AutoPilotPlugin ()
 
virtual void parametersReadyPreChecks ()
 
Q_INVOKABLE bool knownVehicleComponentAvailable (KnownVehicleComponent knownVehicleComponent)
 Returns true if the vehicle component is available for the vehicle. Customs build have different components.
 
Q_INVOKABLE VehicleComponentfindKnownVehicleComponent (KnownVehicleComponent knownVehicleComponent)
 Returns the VehicleComponent for the knownVehicleComponent. Returns nullptr if not available.
 
bool setupComplete () const
 

Protected Attributes

bool _incorrectParameterVersion = false
 true: parameter version incorrect, setup not allowed
 
APMAirframeComponent_airframeComponent = nullptr
 
APMAirspeedComponent_airspeedComponent = nullptr
 
APMGimbalComponent_gimbalComponent = nullptr
 
APMLightsComponent_lightsComponent = nullptr
 
APMSubFrameComponent_subFrameComponent = nullptr
 
APMFlightModesComponent_flightModesComponent = nullptr
 
APMServoComponent_servoComponent = nullptr
 
APMPowerComponent_powerComponent = nullptr
 
APMESCComponent_escComponent = nullptr
 
APMMotorComponent_motorComponent = nullptr
 
APMRadioComponent_radioComponent = nullptr
 
APMFailsafesComponent_failsafesComponent = nullptr
 
APMFlightSafetyComponent_flightSafetyComponent = nullptr
 
APMSensorsComponent_sensorsComponent = nullptr
 
APMTuningComponent_tuningComponent = nullptr
 
APMAdvancedTuningCopterComponent_advancedTuningCopterComponent = nullptr
 
ESP8266Component_esp8266Component = nullptr
 
APMHeliComponent_heliComponent = nullptr
 
APMLoggingComponent_loggingComponent = nullptr
 
APMRemoteSupportComponent_apmRemoteSupportComponent = nullptr
 
APMFollowComponent_followComponent = nullptr
 
JoystickComponent_joystickComponent = nullptr
 
ScriptingComponent_scriptingComponent = nullptr
 
- Protected Attributes inherited from AutoPilotPlugin
Vehicle_vehicle = nullptr
 
FirmwarePlugin_firmwarePlugin = nullptr
 
bool _setupComplete = false
 

Additional Inherited Members

- Public Types inherited from AutoPilotPlugin
enum  KnownVehicleComponent {
  KnownRadioVehicleComponent , KnownFlightModesVehicleComponent , KnownSensorsVehicleComponent , KnownSafetyVehicleComponent ,
  KnownPowerVehicleComponent , KnownJoystickVehicleComponent , KnownESCVehicleComponent , UnknownVehicleComponent
}
 
- Signals inherited from AutoPilotPlugin
void setupCompleteChanged ()
 
void vehicleComponentsChanged ()
 

Detailed Description

This is the AutoPilotPlugin implementation for the MAV_AUTOPILOT_ARDUPILOT type.

Definition at line 32 of file APMAutoPilotPlugin.h.

Constructor & Destructor Documentation

◆ APMAutoPilotPlugin()

APMAutoPilotPlugin::APMAutoPilotPlugin ( Vehicle vehicle,
QObject *  parent = nullptr 
)
explicit

Definition at line 46 of file APMAutoPilotPlugin.cc.

References ParameterManager::parametersReadyChanged().

◆ ~APMAutoPilotPlugin()

APMAutoPilotPlugin::~APMAutoPilotPlugin ( )

Definition at line 56 of file APMAutoPilotPlugin.cc.

Member Function Documentation

◆ prerequisiteSetup()

QString APMAutoPilotPlugin::prerequisiteSetup ( VehicleComponent component) const
overridevirtual

Returns the name of the vehicle component which must complete setup prior to this one. Empty string for none.

Implements AutoPilotPlugin.

Definition at line 195 of file APMAutoPilotPlugin.cc.

References _airframeComponent, _radioComponent, APMAirframeComponent::name(), APMRadioComponent::name(), APMAirframeComponent::setupComplete(), and APMRadioComponent::setupComplete().

◆ vehicleComponents()

Member Data Documentation

◆ _advancedTuningCopterComponent

APMAdvancedTuningCopterComponent* APMAutoPilotPlugin::_advancedTuningCopterComponent = nullptr
protected

Definition at line 60 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _airframeComponent

APMAirframeComponent* APMAutoPilotPlugin::_airframeComponent = nullptr
protected

Definition at line 45 of file APMAutoPilotPlugin.h.

Referenced by prerequisiteSetup(), and vehicleComponents().

◆ _airspeedComponent

APMAirspeedComponent* APMAutoPilotPlugin::_airspeedComponent = nullptr
protected

Definition at line 46 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _apmRemoteSupportComponent

APMRemoteSupportComponent* APMAutoPilotPlugin::_apmRemoteSupportComponent = nullptr
protected

Definition at line 64 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _escComponent

APMESCComponent* APMAutoPilotPlugin::_escComponent = nullptr
protected

Definition at line 53 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _esp8266Component

ESP8266Component* APMAutoPilotPlugin::_esp8266Component = nullptr
protected

Definition at line 61 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _failsafesComponent

APMFailsafesComponent* APMAutoPilotPlugin::_failsafesComponent = nullptr
protected

Definition at line 56 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _flightModesComponent

APMFlightModesComponent* APMAutoPilotPlugin::_flightModesComponent = nullptr
protected

Definition at line 50 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _flightSafetyComponent

APMFlightSafetyComponent* APMAutoPilotPlugin::_flightSafetyComponent = nullptr
protected

Definition at line 57 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _followComponent

APMFollowComponent* APMAutoPilotPlugin::_followComponent = nullptr
protected

Definition at line 65 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _gimbalComponent

APMGimbalComponent* APMAutoPilotPlugin::_gimbalComponent = nullptr
protected

Definition at line 47 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _heliComponent

APMHeliComponent* APMAutoPilotPlugin::_heliComponent = nullptr
protected

Definition at line 62 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _incorrectParameterVersion

bool APMAutoPilotPlugin::_incorrectParameterVersion = false
protected

true: parameter version incorrect, setup not allowed

Definition at line 44 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _joystickComponent

JoystickComponent* APMAutoPilotPlugin::_joystickComponent = nullptr
protected

Definition at line 66 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _lightsComponent

APMLightsComponent* APMAutoPilotPlugin::_lightsComponent = nullptr
protected

Definition at line 48 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _loggingComponent

APMLoggingComponent* APMAutoPilotPlugin::_loggingComponent = nullptr
protected

Definition at line 63 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _motorComponent

APMMotorComponent* APMAutoPilotPlugin::_motorComponent = nullptr
protected

Definition at line 54 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _powerComponent

APMPowerComponent* APMAutoPilotPlugin::_powerComponent = nullptr
protected

Definition at line 52 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _radioComponent

APMRadioComponent* APMAutoPilotPlugin::_radioComponent = nullptr
protected

Definition at line 55 of file APMAutoPilotPlugin.h.

Referenced by prerequisiteSetup(), and vehicleComponents().

◆ _scriptingComponent

ScriptingComponent* APMAutoPilotPlugin::_scriptingComponent = nullptr
protected

Definition at line 67 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _sensorsComponent

APMSensorsComponent* APMAutoPilotPlugin::_sensorsComponent = nullptr
protected

Definition at line 58 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _servoComponent

APMServoComponent* APMAutoPilotPlugin::_servoComponent = nullptr
protected

Definition at line 51 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _subFrameComponent

APMSubFrameComponent* APMAutoPilotPlugin::_subFrameComponent = nullptr
protected

Definition at line 49 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().

◆ _tuningComponent

APMTuningComponent* APMAutoPilotPlugin::_tuningComponent = nullptr
protected

Definition at line 59 of file APMAutoPilotPlugin.h.

Referenced by vehicleComponents().


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