#include <Actuators.h>
Public Slots | |
| void | parametersChanged () |
Signals | |
| void | actuatorOutputsChanged () |
| void | selectedActuatorOutputChanged () |
| void | imageRefreshFlagChanged () |
| void | hasUnsetRequiredFunctionsChanged () |
| void | motorAssignmentActiveChanged () |
| void | motorAssignmentEnabledChanged () |
| void | motorAssignmentMessageChanged () |
| void | actuatorActionsChanged () |
Public Member Functions | |
| Actuators (QObject *parent, Vehicle *vehicle) | |
| ~Actuators ()=default | |
| Q_INVOKABLE void | imageClicked (QSizeF displaySize, float x, float y) |
| Q_INVOKABLE void | selectActuatorOutput (int index) |
| void | load (const QString &json_file, const QJsonDocument &metadata) |
| void | init () |
| QmlObjectListModel * | actuatorOutputs () |
| ActuatorOutputs::ActuatorOutput * | selectedActuatorOutput () const |
| ActuatorTesting::ActuatorTest * | actuatorTest () |
| bool | isMultirotor () const |
| bool | imageRefreshFlag () const |
| Mixer::Mixers * | mixer () |
| bool | hasUnsetRequiredFunctions () const |
| QMap< int, QStringList > | channelsByFunction () const |
| Labels of the output channels each assigned output function (e.g. Motor 1) is set on, by function. | |
| bool | showUi () const |
| bool | isInitialized () const |
| const QString & | initializationError () const |
| QmlObjectListModel * | actuatorActions () |
| Q_INVOKABLE bool | initMotorAssignment () |
| Q_INVOKABLE void | startMotorAssignment () |
| Q_INVOKABLE void | spinCurrentMotor () |
| Q_INVOKABLE void | abortMotorAssignment () |
| bool | motorAssignmentActive () const |
| bool | motorAssignmentEnabled () const |
| const QString & | motorAssignmentMessage () const |
Definition at line 16 of file Actuators.h.
| Actuators::Actuators | ( | QObject * | parent, |
| Vehicle * | vehicle ) |
Definition at line 18 of file Actuators.cc.
References MotorAssignment::activeChanged(), Actuators(), Mixer::Mixers::geometryParamChanged(), MotorAssignment::messageChanged(), motorAssignmentActiveChanged(), motorAssignmentMessageChanged(), MotorAssignment::onAbort(), Mixer::Mixers::paramChanged(), and parametersChanged().
Referenced by Actuators().
|
default |
References actuatorActions(), actuatorActionsChanged(), actuatorOutputs(), actuatorOutputsChanged(), actuatorTest(), hasUnsetRequiredFunctions(), hasUnsetRequiredFunctionsChanged(), imageRefreshFlag(), imageRefreshFlagChanged(), isMultirotor(), mixer(), motorAssignmentActive(), motorAssignmentActiveChanged(), motorAssignmentEnabled(), motorAssignmentEnabledChanged(), motorAssignmentMessage(), motorAssignmentMessageChanged(), selectedActuatorOutput(), and selectedActuatorOutputChanged().
| void Actuators::abortMotorAssignment | ( | ) |
Definition at line 819 of file Actuators.cc.
|
inline |
Definition at line 70 of file Actuators.h.
Referenced by ~Actuators().
|
signal |
Referenced by ~Actuators().
|
inline |
Definition at line 50 of file Actuators.h.
Referenced by ~Actuators().
|
signal |
Referenced by init(), and ~Actuators().
|
inline |
Definition at line 53 of file Actuators.h.
Referenced by ~Actuators().
| QMap< int, QStringList > Actuators::channelsByFunction | ( | ) | const |
Labels of the output channels each assigned output function (e.g. Motor 1) is set on, by function.
Definition at line 113 of file Actuators.cc.
References ActuatorOutputs::ActuatorOutput::forEachChannelFunction(), ActuatorOutputs::ActuatorOutputChannel::label(), and Fact::rawValue().
|
inline |
Definition at line 61 of file Actuators.h.
Referenced by ~Actuators().
|
signal |
Referenced by ActuatorComponent::ActuatorComponent(), parametersChanged(), and ~Actuators().
| void Actuators::imageClicked | ( | QSizeF | displaySize, |
| float | x, | ||
| float | y ) |
|
inline |
Definition at line 57 of file Actuators.h.
Referenced by ~Actuators().
|
signal |
Referenced by ~Actuators().
| void Actuators::init | ( | ) |
Initialize the loaded metadata. Call this after all vehicle parameters are loaded.
Definition at line 143 of file Actuators.cc.
References actuatorOutputsChanged(), ActuatorOutputs::ActuatorOutput::enableParam(), ActuatorOutputs::ActuatorOutput::hasExistingOutputFunctionParams(), and parametersChanged().
|
inline |
Definition at line 68 of file Actuators.h.
| bool Actuators::initMotorAssignment | ( | ) |
Definition at line 786 of file Actuators.cc.
References GeometryImage::VehicleGeometryImageProvider::instance(), and GeometryImage::VehicleGeometryImageProvider::numMotors().
|
inline |
Definition at line 67 of file Actuators.h.
| bool Actuators::isMultirotor | ( | ) | const |
Definition at line 108 of file Actuators.cc.
Referenced by ~Actuators().
| void Actuators::load | ( | const QString & | json_file, |
| const QJsonDocument & | metadata ) |
Load already-parsed JSON metadata (json_file is used for error reporting only)
Definition at line 129 of file Actuators.cc.
|
inline |
Definition at line 59 of file Actuators.h.
Referenced by ~Actuators().
|
inline |
Definition at line 76 of file Actuators.h.
Referenced by ~Actuators().
|
signal |
Referenced by Actuators(), and ~Actuators().
|
inline |
Definition at line 77 of file Actuators.h.
Referenced by ~Actuators().
|
signal |
Referenced by ~Actuators().
|
inline |
Definition at line 78 of file Actuators.h.
Referenced by ~Actuators().
|
signal |
Referenced by Actuators(), and ~Actuators().
|
slot |
Definition at line 173 of file Actuators.cc.
References ActuatorOutputs::ActuatorOutput::addNote(), ActuatorOutputs::ActuatorOutputSubgroup::channelConfigs(), ActuatorOutputs::ActuatorOutput::clearNotes(), Mixer::ActuatorType::Values::defaultVal, Mixer::ActuatorType::functionMax, Mixer::ActuatorType::functionMin, QmlObjectListModel::get(), ActuatorOutputs::ActuatorOutput::getAllChannelFunctions(), hasUnsetRequiredFunctionsChanged(), Mixer::ActuatorType::Values::max, Mixer::ActuatorType::Values::min, ActuatorGeometry::Motor, ActuatorOutputs::ChannelConfig::reevaluate(), ActuatorOutputs::ActuatorOutput::subgroups(), ActuatorGeometry::typeFromStr(), and Mixer::ActuatorType::values.
Referenced by Actuators(), and init().
| void Actuators::selectActuatorOutput | ( | int | index | ) |
Definition at line 55 of file Actuators.cc.
References selectedActuatorOutputChanged().
| ActuatorOutput * Actuators::selectedActuatorOutput | ( | ) | const |
Definition at line 63 of file Actuators.cc.
Referenced by ~Actuators().
|
signal |
Referenced by selectActuatorOutput(), and ~Actuators().
| bool Actuators::showUi | ( | ) | const |
Definition at line 781 of file Actuators.cc.
|
inline |
Definition at line 74 of file Actuators.h.
| void Actuators::startMotorAssignment | ( | ) |
Definition at line 814 of file Actuators.cc.