|
QGroundControl
Ground Control Station for MAVLink Drones
|
#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) | |
| < false: One or more vehicle components require setup | |
| 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 |
| FlightModesComponent * | _flightModesComponent |
| SensorsComponent * | _sensorsComponent |
| SafetyComponent * | _safetyComponent |
| PowerComponent * | _powerComponent |
| 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 () |
Definition at line 21 of file PX4AutoPilotPlugin.h.
| PX4AutoPilotPlugin::PX4AutoPilotPlugin | ( | Vehicle * | vehicle, |
| QObject * | parent | ||
| ) |
Definition at line 20 of file PX4AutoPilotPlugin.cc.
References PX4AirframeLoader::loadAirframeMetaData().
| PX4AutoPilotPlugin::~PX4AutoPilotPlugin | ( | ) |
Definition at line 48 of file PX4AutoPilotPlugin.cc.
References _airframeFacts.
|
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 159 of file PX4AutoPilotPlugin.cc.
References AutoPilotPlugin::_vehicle, ParameterManager::defaultComponentId, ParameterManager::getParameter(), ParameterManager::parameterExists(), Vehicle::parameterManager(), AutoPilotPlugin::parametersReadyPreChecks(), Fact::rawValue(), and QGC::showAppMessage().
|
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 171 of file PX4AutoPilotPlugin.cc.
References _airframeComponent, _radioComponent, AutoPilotPlugin::_vehicle, ParameterManager::getParameter(), AirframeComponent::name(), PX4RadioComponent::name(), Vehicle::parameterManager(), Fact::rawValue(), AirframeComponent::setupComplete(), and PX4RadioComponent::setupComplete().
|
overridevirtual |
Implements AutoPilotPlugin.
Definition at line 53 of file PX4AutoPilotPlugin.cc.
References _actuatorComponent, _airframeComponent, _esp8266Component, _flightBehavior, _flightModesComponent, _incorrectParameterVersion, _joystickComponent, _motorComponent, _powerComponent, _radioComponent, _safetyComponent, _sensorsComponent, _syslinkComponent, _tuningComponent, AutoPilotPlugin::_vehicle, Vehicle::actuators(), Vehicle::compId(), Vehicle::hilMode(), Actuators::init(), Actuators::initializationError(), Actuators::isInitialized(), ParameterManager::parameterExists(), Vehicle::parameterManager(), ParameterManager::parametersReady(), VehicleComponent::setupTriggerSignals(), and Actuators::showUi().
|
protected |
Definition at line 45 of file PX4AutoPilotPlugin.h.
Referenced by vehicleComponents().
|
protected |
Definition at line 37 of file PX4AutoPilotPlugin.h.
Referenced by prerequisiteSetup(), and vehicleComponents().
|
protected |
Definition at line 36 of file PX4AutoPilotPlugin.h.
Referenced by ~PX4AutoPilotPlugin().
|
protected |
Definition at line 39 of file PX4AutoPilotPlugin.h.
Referenced by vehicleComponents().
|
protected |
Definition at line 47 of file PX4AutoPilotPlugin.h.
Referenced by vehicleComponents().
|
protected |
Definition at line 40 of file PX4AutoPilotPlugin.h.
Referenced by vehicleComponents().
|
protected |
true: parameter version incorrect, setup not allowed
Definition at line 35 of file PX4AutoPilotPlugin.h.
Referenced by vehicleComponents().
|
protected |
Definition at line 49 of file PX4AutoPilotPlugin.h.
Referenced by vehicleComponents().
|
protected |
Definition at line 44 of file PX4AutoPilotPlugin.h.
Referenced by vehicleComponents().
|
protected |
Definition at line 43 of file PX4AutoPilotPlugin.h.
Referenced by vehicleComponents().
|
protected |
Definition at line 38 of file PX4AutoPilotPlugin.h.
Referenced by prerequisiteSetup(), and vehicleComponents().
|
protected |
Definition at line 42 of file PX4AutoPilotPlugin.h.
Referenced by vehicleComponents().
|
protected |
Definition at line 41 of file PX4AutoPilotPlugin.h.
Referenced by vehicleComponents().
|
protected |
Definition at line 48 of file PX4AutoPilotPlugin.h.
Referenced by vehicleComponents().
|
protected |
Definition at line 46 of file PX4AutoPilotPlugin.h.
Referenced by vehicleComponents().