|
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 | |
| 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 () |
| bool | initMotorAssignment () |
| void | startMotorAssignment () |
| void | spinCurrentMotor () |
| void | abortMotorAssignment () |
| bool | motorAssignmentActive () const |
| bool | motorAssignmentEnabled () const |
| const QString & | motorAssignmentMessage () const |
Public Attributes | |
| QmlObjectListModel *actuatorOutputs READ actuatorOutputs NOTIFY actuatorOutputsChanged(QmlObjectListModel *actuatorActions READ actuatorActions NOTIFY actuatorActionsChanged) 1(bool isMultirotor READ isMultirotor CONSTANT) 1(bool imageRefreshFlag READ imageRefreshFlag NOTIFY imageRefreshFlagChanged) 1(bool hasUnsetRequiredFunctions READ hasUnsetRequiredFunctions NOTIFY hasUnsetRequiredFunctionsChanged) 1(bool motorAssignmentActive READ motorAssignmentActive NOTIFY motorAssignmentActiveChanged) 1(bool motorAssignmentEnabled READ motorAssignmentEnabled NOTIFY motorAssignmentEnabledChanged) 1(QString motorAssignmentMessage READ motorAssignmentMessage NOTIFY motorAssignmentMessageChanged) 1(ActuatorTesting voi | selectActuatorOutput )(int index) |
Definition at line 14 of file Actuators.h.
| Actuators::Actuators | ( | QObject * | parent, |
| Vehicle * | vehicle | ||
| ) |
Definition at line 15 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 811 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().
|
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 135 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 778 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 105 of file Actuators.cc.
References Mixer::Mixers::configuredType().
| void Actuators::load | ( | const QString & | json_file | ) |
load JSON metadata file
Definition at line 110 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 165 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().
| ActuatorOutput * Actuators::selectedActuatorOutput | ( | ) | const |
Definition at line 60 of file Actuators.cc.
References QmlObjectListModel::count(), and QmlObjectListModel::value().
|
signal |
| bool Actuators::showUi | ( | ) | const |
Definition at line 773 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 806 of file Actuators.cc.
References MotorAssignment::start().
| void Actuators::selectActuatorOutput |
Definition at line 36 of file Actuators.h.