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

MVC Controller for FlightModesComponent.qml. More...

#include <APMFlightModesComponentController.h>

+ Inheritance diagram for APMFlightModesComponentController:
+ Collaboration diagram for APMFlightModesComponentController:

Public Types

enum  SimpleModeValues { SimpleModeStandard = 0 , SimpleModeSimple , SimpleModeSuperSimple , SimpleModeCustom }
 

Signals

void activeFlightModeChanged (int activeFlightMode)
 
void channelOptionEnabledChanged ()
 
void simpleModeChanged (int simpleMode)
 
void simpleModeEnabledChanged ()
 
void superSimpleModeEnabledChanged ()
 
- Signals inherited from FactPanelController
void missingParametersAvailable ()
 

Public Member Functions

 APMFlightModesComponentController (QObject *parent=nullptr)
 
Q_INVOKABLE void setSimpleMode (int fltModeIndex, bool enabled)
 
Q_INVOKABLE void setSuperSimpleMode (int fltModeIndex, bool enabled)
 
int activeFlightMode () const
 
QVariantList channelOptionEnabled () const
 
- Public Member Functions inherited from FactPanelController
 FactPanelController (QObject *parent=nullptr)
 
virtual ~FactPanelController ()
 
Q_INVOKABLE FactgetParameterFact (int componentId, const QString &name, bool reportMissing=true) const
 
Q_INVOKABLE bool parameterExists (int componentId, const QString &name) const
 
Q_INVOKABLE void getMissingParameters (const QStringList &rgNames)
 

Additional Inherited Members

- Protected Member Functions inherited from FactPanelController
bool _allParametersExists (int componentId, const QStringList &names) const
 
void _reportMissingParameter (int componentId, const QString &name) const
 Report a missing parameter.
 
- Protected Attributes inherited from FactPanelController
Vehicle_vehicle = nullptr
 

Detailed Description

MVC Controller for FlightModesComponent.qml.

Definition at line 12 of file APMFlightModesComponentController.h.

Member Enumeration Documentation

◆ SimpleModeValues

Enumerator
SimpleModeStandard 
SimpleModeSimple 
SimpleModeSuperSimple 
SimpleModeCustom 

Definition at line 30 of file APMFlightModesComponentController.h.

Constructor & Destructor Documentation

◆ APMFlightModesComponentController()

Member Function Documentation

◆ activeFlightMode()

int APMFlightModesComponentController::activeFlightMode ( ) const
inline

Definition at line 41 of file APMFlightModesComponentController.h.

◆ activeFlightModeChanged

void APMFlightModesComponentController::activeFlightModeChanged ( int  activeFlightMode)
signal

◆ channelOptionEnabled()

QVariantList APMFlightModesComponentController::channelOptionEnabled ( ) const
inline

Definition at line 42 of file APMFlightModesComponentController.h.

◆ channelOptionEnabledChanged

void APMFlightModesComponentController::channelOptionEnabledChanged ( )
signal

◆ setSimpleMode()

void APMFlightModesComponentController::setSimpleMode ( int  fltModeIndex,
bool  enabled 
)

Definition at line 118 of file APMFlightModesComponentController.cc.

References Fact::rawValue(), and Fact::setRawValue().

◆ setSuperSimpleMode()

void APMFlightModesComponentController::setSuperSimpleMode ( int  fltModeIndex,
bool  enabled 
)

Definition at line 131 of file APMFlightModesComponentController.cc.

References Fact::rawValue(), and Fact::setRawValue().

◆ simpleModeChanged

void APMFlightModesComponentController::simpleModeChanged ( int  simpleMode)
signal

◆ simpleModeEnabledChanged

void APMFlightModesComponentController::simpleModeEnabledChanged ( )
signal

◆ superSimpleModeEnabledChanged

void APMFlightModesComponentController::superSimpleModeEnabledChanged ( )
signal

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