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

#include <ActuatorComponent.h>

Inheritance diagram for ActuatorComponent:
Collaboration diagram for ActuatorComponent:

Public Member Functions

 ActuatorComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
QStringList setupCompleteChangedTriggerList (void) const final
QString name (void) const final
QString description (void) const final
QString iconResource (void) const final
bool requiresSetup (void) const final
int setupOrder (void) const final
bool setupComplete (void) const final
virtual QUrl setupSource (void) const
QUrl summaryQmlSource (void) const final
QList< VehicleSummaryItem > summaryItems () const final
 Values for this component's card on the Summary page. A component with none falls back to summaryQmlSource().
Public Member Functions inherited from VehicleComponent
 VehicleComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent, QObject *parent=nullptr)
virtual ~VehicleComponent ()
virtual QStringList summaryChangedTriggerList () const
 Parameters whose change emits summaryItemsChanged, besides those that change setupComplete.
virtual QString vehicleConfigJson () const
 Resource path to a VehicleConfig.json page definition, or empty if none.
virtual QStringList sectionIds () const
virtual Q_INVOKABLE QString sectionDisplayName (const QString &sectionId) const
QVariantMap sectionKeywords () const
 Search keywords per section, keyed by section ID. Values are original-case translatable terms.
virtual QStringList searchKeywords () const
 Translated search terms for the whole component, for pages without vehicleConfigJson() sections.
virtual bool showFirstSectionOnRootClick () const
 When true, clicking the root component in the tree selects the first section instead of showing all.
virtual Q_INVOKABLE bool sectionSetupComplete (const QString &sectionId) const
 Returns setup-complete status for a section ID. Default returns true (no per-section tracking).
virtual bool allowSetupWhileArmed () const
virtual bool allowSetupWhileFlying () const
virtual void addSummaryQmlComponent (QQmlContext *context, QQuickItem *parent)
virtual void setupTriggerSignals ()
AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent () const

Additional Inherited Members

Signals inherited from VehicleComponent
void requiresSetupChanged ()
void setupCompleteChanged ()
void summaryItemsChanged ()
void setupSourceChanged ()
void sectionIdsChanged ()
Protected Slots inherited from VehicleComponent
void _triggerUpdated (QVariant)
Protected Member Functions inherited from VehicleComponent
Fact * _parameterFact (const QString &name) const
 Fact of a parameter of the default component, nullptr when the vehicle does not have it.
Static Protected Member Functions inherited from VehicleComponent
static QString _valueWithUnits (const Fact *fact)
 The fact's value followed by its units, when it has any.
Protected Attributes inherited from VehicleComponent
Vehicle * _vehicle = nullptr
AutoPilotPlugin * _autopilot = nullptr
AutoPilotPlugin::KnownVehicleComponent _KnownVehicleComponent

Detailed Description

Definition at line 7 of file ActuatorComponent.h.

Constructor & Destructor Documentation

◆ ActuatorComponent()

Member Function Documentation

◆ description()

QString ActuatorComponent::description ( void ) const
finalvirtual

Reimplemented from VehicleComponent.

Definition at line 31 of file ActuatorComponent.cc.

◆ iconResource()

QString ActuatorComponent::iconResource ( void ) const
finalvirtual

Implements VehicleComponent.

Definition at line 36 of file ActuatorComponent.cc.

◆ name()

QString ActuatorComponent::name ( void ) const
finalvirtual

Implements VehicleComponent.

Definition at line 26 of file ActuatorComponent.cc.

◆ requiresSetup()

bool ActuatorComponent::requiresSetup ( void ) const
finalvirtual

Implements VehicleComponent.

Definition at line 41 of file ActuatorComponent.cc.

◆ setupComplete()

bool ActuatorComponent::setupComplete ( void ) const
finalvirtual

Implements VehicleComponent.

Definition at line 46 of file ActuatorComponent.cc.

◆ setupCompleteChangedTriggerList()

QStringList ActuatorComponent::setupCompleteChangedTriggerList ( void ) const
finalvirtual

Returns an list of parameter names for which a change should cause the setupCompleteChanged signal to be emitted.

Implements VehicleComponent.

Definition at line 51 of file ActuatorComponent.cc.

◆ setupOrder()

int ActuatorComponent::setupOrder ( void ) const
inlinefinalvirtual

Where the component comes in the recommended order of setting up a vehicle, lowest first. Components that do not set one come after those that do.

Reimplemented from VehicleComponent.

Definition at line 23 of file ActuatorComponent.h.

◆ setupSource()

QUrl ActuatorComponent::setupSource ( void ) const
virtual

Implements VehicleComponent.

Definition at line 56 of file ActuatorComponent.cc.

◆ summaryItems()

QList< VehicleSummaryItem > ActuatorComponent::summaryItems ( void ) const
finalvirtual

Values for this component's card on the Summary page. A component with none falls back to summaryQmlSource().

Reimplemented from VehicleComponent.

Definition at line 66 of file ActuatorComponent.cc.

References Mixer::Mixers::actuatorTypes(), Mixer::Mixers::getSpecificLabelForFunction(), ActuatorGeometry::Motor, ActuatorGeometry::Servo, Mixer::Mixers::title(), and ActuatorGeometry::typeFromStr().

◆ summaryQmlSource()

QUrl ActuatorComponent::summaryQmlSource ( void ) const
finalvirtual

Implements VehicleComponent.

Definition at line 61 of file ActuatorComponent.cc.


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