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

#include <PX4AutoPilotPlugin.h>

Inheritance diagram for PX4AutoPilotPlugin:
Collaboration diagram for PX4AutoPilotPlugin:

Public Member Functions

 PX4AutoPilotPlugin (Vehicle *vehicle, QObject *parent)
 ~PX4AutoPilotPlugin ()
const QVariantList & vehicleComponents (void) override
void parametersReadyPreChecks (void) 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)
virtual ~AutoPilotPlugin ()
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

bool _incorrectParameterVersion
 true: parameter version incorrect, setup not allowed
PX4AirframeLoader * _airframeFacts
AirframeComponent * _airframeComponent
PX4RadioComponent * _radioComponent
ESP8266Component * _esp8266Component
FailureInjectionComponent * _failureInjectionComponent
FlightModesComponent * _flightModesComponent
SensorsComponent * _sensorsComponent
PX4ReturnLandComponent * _returnLandComponent
PX4CollisionComponent * _collisionComponent
PX4FailsafesComponent * _failsafesComponent
PX4SerialPortsComponent * _serialPortsComponent
PX4EscComponent * _escComponent
PX4BatteryComponent * _batteryComponent
MotorComponent * _motorComponent
ActuatorComponent * _actuatorComponent
PX4TuningComponent * _tuningComponent
PX4FlightBehavior * _flightBehavior
SyslinkComponent * _syslinkComponent
JoystickComponent * _joystickComponent
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

Definition at line 26 of file PX4AutoPilotPlugin.h.

Constructor & Destructor Documentation

◆ PX4AutoPilotPlugin()

◆ ~PX4AutoPilotPlugin()

PX4AutoPilotPlugin::~PX4AutoPilotPlugin ( )

Definition at line 56 of file PX4AutoPilotPlugin.cc.

References _airframeFacts.

Member Function Documentation

◆ parametersReadyPreChecks()

void PX4AutoPilotPlugin::parametersReadyPreChecks ( void )
overridevirtual

Called when parameters are ready for the first time. Note that parameters may still be missing. Overrides must call base class.

Reimplemented from AutoPilotPlugin.

Definition at line 196 of file PX4AutoPilotPlugin.cc.

References AutoPilotPlugin::_vehicle, ParameterManager::defaultComponentId, AutoPilotPlugin::parametersReadyPreChecks(), and QGC::showAppMessage().

◆ prerequisiteSetup()

QString PX4AutoPilotPlugin::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 208 of file PX4AutoPilotPlugin.cc.

References _airframeComponent, _radioComponent, and AutoPilotPlugin::_vehicle.

◆ vehicleComponents()

Member Data Documentation

◆ _actuatorComponent

ActuatorComponent* PX4AutoPilotPlugin::_actuatorComponent
protected

Definition at line 55 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _airframeComponent

AirframeComponent* PX4AutoPilotPlugin::_airframeComponent
protected

Definition at line 42 of file PX4AutoPilotPlugin.h.

Referenced by prerequisiteSetup(), PX4AutoPilotPlugin(), and vehicleComponents().

◆ _airframeFacts

PX4AirframeLoader* PX4AutoPilotPlugin::_airframeFacts
protected

Definition at line 41 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and ~PX4AutoPilotPlugin().

◆ _batteryComponent

PX4BatteryComponent* PX4AutoPilotPlugin::_batteryComponent
protected

Definition at line 53 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _collisionComponent

PX4CollisionComponent* PX4AutoPilotPlugin::_collisionComponent
protected

Definition at line 49 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _escComponent

PX4EscComponent* PX4AutoPilotPlugin::_escComponent
protected

Definition at line 52 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _esp8266Component

ESP8266Component* PX4AutoPilotPlugin::_esp8266Component
protected

Definition at line 44 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _failsafesComponent

PX4FailsafesComponent* PX4AutoPilotPlugin::_failsafesComponent
protected

Definition at line 50 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _failureInjectionComponent

FailureInjectionComponent* PX4AutoPilotPlugin::_failureInjectionComponent
protected

Definition at line 45 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _flightBehavior

PX4FlightBehavior* PX4AutoPilotPlugin::_flightBehavior
protected

Definition at line 57 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _flightModesComponent

FlightModesComponent* PX4AutoPilotPlugin::_flightModesComponent
protected

Definition at line 46 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _incorrectParameterVersion

bool PX4AutoPilotPlugin::_incorrectParameterVersion
protected

true: parameter version incorrect, setup not allowed

Definition at line 40 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _joystickComponent

JoystickComponent* PX4AutoPilotPlugin::_joystickComponent
protected

Definition at line 59 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _motorComponent

MotorComponent* PX4AutoPilotPlugin::_motorComponent
protected

Definition at line 54 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _radioComponent

PX4RadioComponent* PX4AutoPilotPlugin::_radioComponent
protected

Definition at line 43 of file PX4AutoPilotPlugin.h.

Referenced by prerequisiteSetup(), PX4AutoPilotPlugin(), and vehicleComponents().

◆ _returnLandComponent

PX4ReturnLandComponent* PX4AutoPilotPlugin::_returnLandComponent
protected

Definition at line 48 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _sensorsComponent

SensorsComponent* PX4AutoPilotPlugin::_sensorsComponent
protected

Definition at line 47 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _serialPortsComponent

PX4SerialPortsComponent* PX4AutoPilotPlugin::_serialPortsComponent
protected

Definition at line 51 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _syslinkComponent

SyslinkComponent* PX4AutoPilotPlugin::_syslinkComponent
protected

Definition at line 58 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().

◆ _tuningComponent

PX4TuningComponent* PX4AutoPilotPlugin::_tuningComponent
protected

Definition at line 56 of file PX4AutoPilotPlugin.h.

Referenced by PX4AutoPilotPlugin(), and vehicleComponents().


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