QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
Mixer::Mixers Class Reference

#include <Mixer.h>

+ Inheritance diagram for Mixer::Mixers:
+ Collaboration diagram for Mixer::Mixers:

Classes

struct  OutputFunction
 

Public Slots

void update ()
 

Signals

void groupsChanged ()
 
void paramChanged ()
 
void geometryParamChanged ()
 

Public Member Functions

 Mixers (ParameterManager *parameterManager)
 
void reset (const ActuatorTypes &actuatorTypes, const MixerOptions &mixerOptions, const QMap< int, OutputFunction > &functions, const Rules &rules)
 
QmlObjectListModelgroups ()
 
QString title () const
 
QString helpUrl () const
 
const ActuatorTypesactuatorTypes () const
 
QString getSpecificLabelForFunction (int function) const
 
QSet< int > getFunctions (bool requiredOnly) const
 
QString configuredType () const
 
const QMap< int, OutputFunction > & functions () const
 

Detailed Description

Definition at line 349 of file Mixer.h.

Constructor & Destructor Documentation

◆ Mixers()

Mixer::Mixers::Mixers ( ParameterManager parameterManager)
inline

Definition at line 353 of file Mixer.h.

Member Function Documentation

◆ actuatorTypes()

const ActuatorTypes & Mixer::Mixers::actuatorTypes ( ) const
inline

Definition at line 378 of file Mixer.h.

Referenced by Actuators::initMotorAssignment(), Actuators::parametersChanged(), and reset().

◆ configuredType()

QString Mixers::configuredType ( ) const

Definition at line 603 of file Mixer.cc.

Referenced by Actuators::isMultirotor().

◆ functions()

const QMap< int, OutputFunction > & Mixer::Mixers::functions ( ) const
inline

Definition at line 396 of file Mixer.h.

Referenced by Actuators::parametersChanged(), and reset().

◆ geometryParamChanged

void Mixer::Mixers::geometryParamChanged ( )
signal

Referenced by Actuators::Actuators().

◆ getFunctions()

QSet< int > Mixers::getFunctions ( bool  requiredOnly) const

◆ getSpecificLabelForFunction()

QString Mixers::getSpecificLabelForFunction ( int  function) const

Get the mixer-specific label for a certain output function and the current configuration, combined with the generic label. E.g. 'Front Left Tilt (Servo 1)' for the 'Servo 1' function.

Parameters
functionactuator output function
Returns
empty string if there's no such function

Definition at line 542 of file Mixer.cc.

References Mixer::MixerChannel::actuatorFunction(), Mixer::MixerConfigGroup::channels(), QmlObjectListModel::count(), Fact::enumOrValueString(), Mixer::MixerChannel::getFact(), Fact::rawValue(), Mixer::Type, and QmlObjectListModel::value().

Referenced by Actuators::parametersChanged().

◆ groups()

QmlObjectListModel * Mixer::Mixers::groups ( )
inline

Definition at line 373 of file Mixer.h.

◆ groupsChanged

void Mixer::Mixers::groupsChanged ( )
signal

Referenced by update().

◆ helpUrl()

QString Mixers::helpUrl ( ) const

Definition at line 618 of file Mixer.cc.

◆ paramChanged

void Mixer::Mixers::paramChanged ( )
signal

Referenced by Actuators::Actuators().

◆ reset()

void Mixers::reset ( const ActuatorTypes actuatorTypes,
const MixerOptions mixerOptions,
const QMap< int, OutputFunction > &  functions,
const Rules rules 
)

◆ title()

QString Mixers::title ( ) const

Definition at line 611 of file Mixer.cc.

◆ update


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