QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ActuatorGeometry Struct Reference

#include <Common.h>

+ Collaboration diagram for ActuatorGeometry:

Classes

struct  RenderOptions
 

Public Types

enum class  Type { Motor , Servo , Other }
 
enum class  SpinDirection { Unspecified , ClockWise , CounterClockWise }
 

Public Member Functions

 ActuatorGeometry (Type type_=Type::Other, int index_=0, QVector3D position_={}, SpinDirection spinDirection_=SpinDirection::Unspecified)
 

Static Public Member Functions

static Type typeFromStr (const QString &type)
 

Public Attributes

Type type
 
int index
 
int labelIndexOffset {0}
 
QVector3D position
 
SpinDirection spinDirection
 
RenderOptions renderOptions {}
 

Detailed Description

Actuator used for rendering

Definition at line 120 of file Common.h.

Member Enumeration Documentation

◆ SpinDirection

Enumerator
Unspecified 
ClockWise 
CounterClockWise 

Definition at line 128 of file Common.h.

◆ Type

Enumerator
Motor 
Servo 
Other 

Definition at line 122 of file Common.h.

Constructor & Destructor Documentation

◆ ActuatorGeometry()

ActuatorGeometry::ActuatorGeometry ( Type  type_ = Type::Other,
int  index_ = 0,
QVector3D  position_ = {},
SpinDirection  spinDirection_ = SpinDirection::Unspecified 
)
inline

Definition at line 140 of file Common.h.

Member Function Documentation

◆ typeFromStr()

ActuatorGeometry::Type ActuatorGeometry::typeFromStr ( const QString type)
static

Definition at line 244 of file Common.cc.

References Motor, Other, Servo, and type.

Referenced by Mixer::MixerChannel::getGeometry(), and Actuators::parametersChanged().

Member Data Documentation

◆ index

int ActuatorGeometry::index

Definition at line 145 of file Common.h.

Referenced by Mixer::MixerChannel::getGeometry().

◆ labelIndexOffset

int ActuatorGeometry::labelIndexOffset {0}

Definition at line 146 of file Common.h.

Referenced by Mixer::MixerChannel::getGeometry().

◆ position

QVector3D ActuatorGeometry::position

Definition at line 147 of file Common.h.

Referenced by Mixer::MixerChannel::getGeometry().

◆ renderOptions

RenderOptions ActuatorGeometry::renderOptions {}

Definition at line 150 of file Common.h.

◆ spinDirection

SpinDirection ActuatorGeometry::spinDirection

Definition at line 148 of file Common.h.

Referenced by Mixer::MixerChannel::getGeometry().

◆ type

Type ActuatorGeometry::type

Definition at line 144 of file Common.h.

Referenced by Mixer::MixerChannel::getGeometry(), and typeFromStr().


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