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

#include <JoystickComponent.h>

+ Inheritance diagram for JoystickComponent:
+ Collaboration diagram for JoystickComponent:

Signals

void activeJoystickChanged ()
 
void joystickStatusChanged ()
 
- Signals inherited from VehicleComponent
void setupCompleteChanged ()
 
void setupSourceChanged ()
 
void sectionsChanged ()
 

Public Member Functions

 JoystickComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
 
 ~JoystickComponent () override
 
QStringList setupCompleteChangedTriggerList () const final
 
QString name () const final
 
QString description () const final
 
QString iconResource () const final
 
bool requiresSetup () const final
 
bool setupComplete () const final
 
QUrl setupSource () const final
 
QUrl summaryQmlSource () const final
 
JoystickactiveJoystick () const
 
bool hasActiveJoystick () const
 
QString joystickStatusText () const
 
QString joystickFeaturesText () const
 
- Public Member Functions inherited from VehicleComponent
 VehicleComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent, QObject *parent=nullptr)
 
virtual ~VehicleComponent ()
 
virtual QString vehicleConfigJson () const
 Resource path to a VehicleConfig.json page definition, or empty if none.
 
virtual QStringList sections () const
 
QVariantMap sectionKeywords () const
 Search keywords per section, keyed by section title. Values are original-case translatable terms.
 
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 &sectionName) const
 Returns setup-complete status for a named section. 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

- Protected Slots inherited from VehicleComponent
void _triggerUpdated (QVariant)
 
- Protected Attributes inherited from VehicleComponent
Vehicle_vehicle = nullptr
 
AutoPilotPlugin_autopilot = nullptr
 
AutoPilotPlugin::KnownVehicleComponent _KnownVehicleComponent
 

Detailed Description

Definition at line 7 of file JoystickComponent.h.

Constructor & Destructor Documentation

◆ JoystickComponent()

JoystickComponent::JoystickComponent ( Vehicle vehicle,
AutoPilotPlugin autopilot,
QObject *  parent = nullptr 
)
explicit

◆ ~JoystickComponent()

JoystickComponent::~JoystickComponent ( )
override

Definition at line 21 of file JoystickComponent.cc.

Member Function Documentation

◆ activeJoystick()

Joystick * JoystickComponent::activeJoystick ( ) const
inline

Definition at line 30 of file JoystickComponent.h.

◆ activeJoystickChanged

void JoystickComponent::activeJoystickChanged ( )
signal

◆ description()

QString JoystickComponent::description ( void  ) const
finalvirtual

Reimplemented from VehicleComponent.

Definition at line 26 of file JoystickComponent.cc.

◆ hasActiveJoystick()

bool JoystickComponent::hasActiveJoystick ( ) const
inline

Definition at line 31 of file JoystickComponent.h.

◆ iconResource()

QString JoystickComponent::iconResource ( void  ) const
inlinefinalvirtual

Implements VehicleComponent.

Definition at line 24 of file JoystickComponent.h.

◆ joystickFeaturesText()

QString JoystickComponent::joystickFeaturesText ( ) const

◆ joystickStatusChanged

void JoystickComponent::joystickStatusChanged ( )
signal

◆ joystickStatusText()

QString JoystickComponent::joystickStatusText ( ) const

◆ name()

QString JoystickComponent::name ( void  ) const
inlinefinalvirtual

Implements VehicleComponent.

Definition at line 22 of file JoystickComponent.h.

◆ requiresSetup()

bool JoystickComponent::requiresSetup ( void  ) const
inlinefinalvirtual

Implements VehicleComponent.

Definition at line 25 of file JoystickComponent.h.

◆ setupComplete()

bool JoystickComponent::setupComplete ( void  ) const
finalvirtual

◆ setupCompleteChangedTriggerList()

QStringList JoystickComponent::setupCompleteChangedTriggerList ( ) const
inlinefinalvirtual

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

Implements VehicleComponent.

Definition at line 21 of file JoystickComponent.h.

◆ setupSource()

QUrl JoystickComponent::setupSource ( void  ) const
finalvirtual

Implements VehicleComponent.

Definition at line 36 of file JoystickComponent.cc.

◆ summaryQmlSource()

QUrl JoystickComponent::summaryQmlSource ( void  ) const
finalvirtual

Implements VehicleComponent.

Definition at line 41 of file JoystickComponent.cc.


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