|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <Actuators.h>
Inheritance diagram for Actuators:
Collaboration diagram for Actuators: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) |
| void | init () |
| QmlObjectListModel * | actuatorOutputs () |
| ActuatorOutputs::ActuatorOutput * | selectedActuatorOutput () const |
| ActuatorTesting::ActuatorTest * | actuatorTest () |
| bool | isMultirotor () const |
| bool | imageRefreshFlag () const |
| Mixer::Mixers * | mixer () |
| bool | hasUnsetRequiredFunctions () const |
| 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 14 of file Actuators.h.
| Actuators::Actuators | ( | QObject * | parent, |
| Vehicle * | vehicle | ||
| ) |
Definition at line 19 of file Actuators.cc.
References MotorAssignment::activeChanged(), Mixer::Mixers::geometryParamChanged(), MotorAssignment::messageChanged(), motorAssignmentActiveChanged(), motorAssignmentMessageChanged(), MotorAssignment::onAbort(), Mixer::Mixers::paramChanged(), and parametersChanged().
|
default |
| void Actuators::abortMotorAssignment | ( | ) |
Definition at line 815 of file Actuators.cc.
References MotorAssignment::abort().
|
inline |
Definition at line 65 of file Actuators.h.
|
signal |
|
inline |
Definition at line 48 of file Actuators.h.
|
signal |
Referenced by init().
|
inline |
Definition at line 51 of file Actuators.h.
|
inline |
Definition at line 59 of file Actuators.h.
Referenced by ActuatorComponent::setupComplete().
|
signal |
Referenced by ActuatorComponent::ActuatorComponent(), and parametersChanged().
| void Actuators::imageClicked | ( | QSizeF | displaySize, |
| float | x, | ||
| float | y | ||
| ) |
Definition at line 31 of file Actuators.cc.
References MotorAssignment::active(), GeometryImage::VehicleGeometryImageProvider::actuators(), GeometryImage::VehicleGeometryImageProvider::getHighlightedMotorIndexAtPos(), GeometryImage::VehicleGeometryImageProvider::instance(), ActuatorGeometry::Motor, and MotorAssignment::selectMotor().
|
inline |
Definition at line 55 of file Actuators.h.
|
signal |
| void Actuators::init | ( | ) |
Initialize the loaded metadata. Call this after all vehicle parameters are loaded.
Definition at line 139 of file Actuators.cc.
References actuatorOutputsChanged(), QmlObjectListModel::count(), ActuatorOutputs::ActuatorOutput::enableParam(), QmlObjectListModel::get(), ActuatorOutputs::ActuatorOutput::hasExistingOutputFunctionParams(), Vehicle::parameterManager(), parametersChanged(), ParameterManager::parametersReady(), and QmlObjectListModel::removeAt().
Referenced by PX4AutoPilotPlugin::vehicleComponents().
|
inline |
Definition at line 63 of file Actuators.h.
Referenced by PX4AutoPilotPlugin::vehicleComponents().
| bool Actuators::initMotorAssignment | ( | ) |
Definition at line 782 of file Actuators.cc.
References Mixer::Mixers::actuatorTypes(), MotorAssignment::initAssignment(), GeometryImage::VehicleGeometryImageProvider::instance(), and GeometryImage::VehicleGeometryImageProvider::numMotors().
|
inline |
Definition at line 62 of file Actuators.h.
Referenced by PX4AutoPilotPlugin::vehicleComponents().
| bool Actuators::isMultirotor | ( | ) | const |
Definition at line 109 of file Actuators.cc.
References Mixer::Mixers::configuredType().
| void Actuators::load | ( | const QString & | json_file | ) |
load JSON metadata file
Definition at line 114 of file Actuators.cc.
Referenced by Vehicle::setActuatorsMetadata().
|
inline |
Definition at line 57 of file Actuators.h.
|
inline |
Definition at line 71 of file Actuators.h.
References MotorAssignment::active().
|
signal |
Referenced by Actuators().
|
inline |
Definition at line 72 of file Actuators.h.
|
signal |
|
inline |
Definition at line 73 of file Actuators.h.
References MotorAssignment::message().
|
signal |
Referenced by Actuators().
|
slot |
Definition at line 169 of file Actuators.cc.
References Mixer::Mixers::actuatorTypes(), ActuatorOutputs::ActuatorOutput::addNote(), ActuatorOutputs::ActuatorOutputSubgroup::channelConfigs(), ActuatorOutputs::ActuatorOutput::clearNotes(), QmlObjectListModel::count(), Mixer::ActuatorType::Values::defaultVal, Mixer::ActuatorType::functionMax, Mixer::ActuatorType::functionMin, Mixer::Mixers::functions(), QmlObjectListModel::get(), ActuatorOutputs::ActuatorOutput::getAllChannelFunctions(), Mixer::Mixers::getFunctions(), Mixer::Mixers::getSpecificLabelForFunction(), hasUnsetRequiredFunctionsChanged(), Mixer::ActuatorType::Values::max, Mixer::ActuatorType::Values::min, ActuatorGeometry::Motor, ActuatorOutputs::ChannelConfig::reevaluate(), ActuatorOutputs::ActuatorOutput::subgroups(), ActuatorGeometry::typeFromStr(), Mixer::Mixers::update(), ActuatorTesting::ActuatorTest::updateFunctions(), and Mixer::ActuatorType::values.
Referenced by Actuators(), and init().
| void Actuators::selectActuatorOutput | ( | int | index | ) |
Definition at line 56 of file Actuators.cc.
References QmlObjectListModel::count(), and selectedActuatorOutputChanged().
| ActuatorOutput * Actuators::selectedActuatorOutput | ( | ) | const |
Definition at line 64 of file Actuators.cc.
References QmlObjectListModel::count(), and QmlObjectListModel::value().
|
signal |
Referenced by selectActuatorOutput().
| bool Actuators::showUi | ( | ) | const |
Definition at line 777 of file Actuators.cc.
References Condition::evaluate().
Referenced by PX4AutoPilotPlugin::vehicleComponents().
|
inline |
Definition at line 69 of file Actuators.h.
References MotorAssignment::spinCurrentMotor().
| void Actuators::startMotorAssignment | ( | ) |
Definition at line 810 of file Actuators.cc.
References MotorAssignment::start().