|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <MotorAssignment.h>
Inheritance diagram for MotorAssignment:
Collaboration diagram for MotorAssignment:Signals | |
| void | activeChanged () |
| void | messageChanged () |
| void | onAbort () |
Public Member Functions | |
| MotorAssignment (QObject *parent, Vehicle *vehicle, QmlObjectListModel *actuators) | |
| virtual | ~MotorAssignment ()=default |
| bool | initAssignment (int selectedActuatorIdx, int firstMotorsFunction, int numMotors) |
| void | start () |
| void | selectMotor (int motorIndex) |
| void | spinCurrentMotor () |
| void | abort () |
| bool | active () const |
| const QString & | message () const |
Handles automatic motor ordering assignment by spinning individual motors, and then having the user to select the corresponding motor.
Definition at line 15 of file MotorAssignment.h.
| MotorAssignment::MotorAssignment | ( | QObject * | parent, |
| Vehicle * | vehicle, | ||
| QmlObjectListModel * | actuators | ||
| ) |
Definition at line 8 of file MotorAssignment.cc.
|
virtualdefault |
| void MotorAssignment::abort | ( | ) |
Definition at line 165 of file MotorAssignment.cc.
Referenced by Actuators::abortMotorAssignment().
|
inline |
Definition at line 40 of file MotorAssignment.h.
Referenced by Actuators::motorAssignmentActive().
|
signal |
Referenced by Actuators::Actuators().
| bool MotorAssignment::initAssignment | ( | int | selectedActuatorIdx, |
| int | firstMotorsFunction, | ||
| int | numMotors | ||
| ) |
Initialize assignment, and set the UI confirmation message to be shown to the user.
Definition at line 16 of file MotorAssignment.cc.
References QmlObjectListModel::count(), QmlObjectListModel::get(), and messageChanged().
Referenced by Actuators::initMotorAssignment().
|
inline |
Definition at line 42 of file MotorAssignment.h.
Referenced by Actuators::motorAssignmentMessage().
|
signal |
Referenced by Actuators::Actuators(), and initAssignment().
|
signal |
Referenced by Actuators::Actuators().
| void MotorAssignment::selectMotor | ( | int | motorIndex | ) |
Definition at line 126 of file MotorAssignment.cc.
| void MotorAssignment::spinCurrentMotor | ( | ) |
Definition at line 156 of file MotorAssignment.cc.
Referenced by Actuators::spinCurrentMotor().
| void MotorAssignment::start | ( | ) |
Start the assignment, called after confirming.
Definition at line 94 of file MotorAssignment.cc.
Referenced by Actuators::startMotorAssignment().