#include <MotorAssignment.h>
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 20 of file MotorAssignment.h.
| MotorAssignment::MotorAssignment | ( | QObject * | parent, |
| Vehicle * | vehicle, | ||
| QmlObjectListModel * | actuators ) |
Definition at line 13 of file MotorAssignment.cc.
References MotorAssignment().
Referenced by MotorAssignment().
|
virtualdefault |
| void MotorAssignment::abort | ( | ) |
Definition at line 170 of file MotorAssignment.cc.
|
inline |
Definition at line 45 of file MotorAssignment.h.
|
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 21 of file MotorAssignment.cc.
References messageChanged().
|
inline |
Definition at line 47 of file MotorAssignment.h.
|
signal |
Referenced by Actuators::Actuators(), and initAssignment().
|
signal |
References Idle.
Referenced by Actuators::Actuators().
| void MotorAssignment::selectMotor | ( | int | motorIndex | ) |
Definition at line 131 of file MotorAssignment.cc.
| void MotorAssignment::spinCurrentMotor | ( | ) |
Definition at line 161 of file MotorAssignment.cc.
| void MotorAssignment::start | ( | ) |
Start the assignment, called after confirming.
Definition at line 99 of file MotorAssignment.cc.