#include <PX4AutoPilotPlugin.h>
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 |
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 26 of file PX4AutoPilotPlugin.h.
| PX4AutoPilotPlugin::PX4AutoPilotPlugin | ( | Vehicle * | vehicle, |
| QObject * | parent ) |
Definition at line 23 of file PX4AutoPilotPlugin.cc.
References _actuatorComponent, _airframeComponent, _airframeFacts, _batteryComponent, _collisionComponent, _escComponent, _esp8266Component, _failsafesComponent, _failureInjectionComponent, _flightBehavior, _flightModesComponent, _incorrectParameterVersion, _joystickComponent, _motorComponent, _radioComponent, _returnLandComponent, _sensorsComponent, _serialPortsComponent, _syslinkComponent, _tuningComponent, AutoPilotPlugin::AutoPilotPlugin(), PX4AirframeLoader::loadAirframeMetaData(), and PX4AutoPilotPlugin().
Referenced by PX4AutoPilotPlugin().
| PX4AutoPilotPlugin::~PX4AutoPilotPlugin | ( | ) |
Definition at line 56 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 196 of file PX4AutoPilotPlugin.cc.
References AutoPilotPlugin::_vehicle, ParameterManager::defaultComponentId, AutoPilotPlugin::parametersReadyPreChecks(), 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 208 of file PX4AutoPilotPlugin.cc.
References _airframeComponent, _radioComponent, and AutoPilotPlugin::_vehicle.
|
overridevirtual |
Implements AutoPilotPlugin.
Definition at line 61 of file PX4AutoPilotPlugin.cc.
References _actuatorComponent, _airframeComponent, _batteryComponent, _collisionComponent, _escComponent, _esp8266Component, _failsafesComponent, _failureInjectionComponent, _flightBehavior, _flightModesComponent, _incorrectParameterVersion, _joystickComponent, _motorComponent, _radioComponent, _returnLandComponent, _sensorsComponent, _serialPortsComponent, _syslinkComponent, _tuningComponent, AutoPilotPlugin::_vehicle, ParameterManager::defaultComponentId, and PX4SerialPortsComponent::functionFacts().
|
protected |
Definition at line 55 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 42 of file PX4AutoPilotPlugin.h.
Referenced by prerequisiteSetup(), PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 41 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and ~PX4AutoPilotPlugin().
|
protected |
Definition at line 53 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 49 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 52 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 44 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 50 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 45 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 57 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 46 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
true: parameter version incorrect, setup not allowed
Definition at line 40 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 59 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 54 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 43 of file PX4AutoPilotPlugin.h.
Referenced by prerequisiteSetup(), PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 48 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 47 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 51 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 58 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().
|
protected |
Definition at line 56 of file PX4AutoPilotPlugin.h.
Referenced by PX4AutoPilotPlugin(), and vehicleComponents().