|
QGroundControl
Ground Control Station for MAVLink Drones
|
#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) |
| QmlObjectListModel *groups READ groups NOTIFY | groupsChanged (QString title READ title NOTIFY groupsChanged) 1(QString helpUrl READ helpUrl NOTIFY groupsChanged) QmlObjectListModel *groups() |
| QString | title () const |
| QString | helpUrl () const |
| const ActuatorTypes & | actuatorTypes () const |
| QString | getSpecificLabelForFunction (int function) const |
| QSet< int > | getFunctions (bool requiredOnly) const |
| QString | configuredType () const |
| const QMap< int, OutputFunction > & | functions () const |
|
inline |
|
inline |
Definition at line 378 of file Mixer.h.
Referenced by Actuators::initMotorAssignment(), Actuators::parametersChanged(), and reset().
| QString Mixers::configuredType | ( | ) | const |
Definition at line 600 of file Mixer.cc.
Referenced by Actuators::isMultirotor().
|
inline |
Definition at line 396 of file Mixer.h.
Referenced by Actuators::parametersChanged(), and reset().
|
signal |
Referenced by Actuators::Actuators().
| QSet< int > Mixers::getFunctions | ( | bool | requiredOnly | ) | const |
Get the set of all (required) actuator functions
Definition at line 582 of file Mixer.cc.
References Mixer::MixerChannel::actuatorFunction(), Mixer::MixerConfigGroup::channels(), QmlObjectListModel::count(), Mixer::MixerConfigGroup::group(), Mixer::MixerOption::ActuatorGroup::required, and QmlObjectListModel::value().
Referenced by Actuators::parametersChanged().
| 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.
| function | actuator output function |
Definition at line 539 of file Mixer.cc.
References Mixer::MixerChannel::actuatorFunction(), Mixer::MixerConfigGroup::channels(), QmlObjectListModel::count(), Mixer::MixerChannel::getFact(), Mixer::Type, and QmlObjectListModel::value().
Referenced by Actuators::parametersChanged().
|
signal |
Referenced by update().
|
inline |
|
signal |
Referenced by Actuators::Actuators().
| void Mixers::reset | ( | const ActuatorTypes & | actuatorTypes, |
| const MixerOptions & | mixerOptions, | ||
| const QMap< int, OutputFunction > & | functions, | ||
| const Rules & | rules | ||
| ) |
Definition at line 387 of file Mixer.cc.
References actuatorTypes(), QmlObjectListModel::clearAndDeleteContents(), functions(), and update().
|
slot |
Call this on param update(s)
Definition at line 403 of file Mixer.cc.
References Mixer::MixerConfigGroup::addChannel(), Mixer::MixerConfigGroup::addChannelConfig(), Mixer::MixerConfigGroup::addConfigParam(), QmlObjectListModel::append(), Mixer::AxisX, Mixer::AxisY, Mixer::AxisZ, Mixer::MixerConfigGroup::channelConfigs(), QmlObjectListModel::clearAndDeleteContents(), Mixer::ChannelConfig::config(), QmlObjectListModel::count(), Mixer::MixerParameter::function, groupsChanged(), QmlObjectListModel::insert(), Mixer::MixerParameter::param, Mixer::Rule::selectIdentifier, Mixer::MixerConfigGroup::setCountParam(), Mixer::Type, Mixer::Unspecified, and QmlObjectListModel::value().
Referenced by Actuators::parametersChanged(), and reset().