NDEVR
API Documentation
MotorDeploymentWidget

Provides an interface for controlling a motor involved with a particular Deployment. More...

Collaboration diagram for MotorDeploymentWidget:
[legend]

Public Member Functions

 MotorDeploymentWidget (Motor *winch, QWidget *parent=nullptr)
 Constructs a MotorDeploymentWidget for a specific motor.
 MotorDeploymentWidget (QWidget *parent=nullptr)
 Constructs a MotorDeploymentWidget without a motor.
void setMotor (Motor *winch)
 Sets the motor to control.
void startMotor (bool up, bool constant)
 Starts the motor in the specified direction and mode.
void stopWinch ()
 Stops the motor immediately.

Protected Member Functions

WinchDeploymentDialogdeploymentDialog ()
 Returns or creates the winch deployment dialog for detailed motor control.
void setupUI ()
 Initializes the UI layout and buttons.

Protected Attributes

Buttonm_deploy_constant_down
 Button for constant-speed downward deployment.
Buttonm_deploy_constant_up
 Button for constant-speed upward deployment.
Buttonm_deploy_down
 Button for step-mode downward deployment.
Buttonm_deploy_up
 Button for step-mode upward deployment.
WinchDeploymentDialogm_deployment_dialog
 Dialog for detailed winch deployment settings.
Motorm_motor
 The motor being controlled.

Detailed Description

Provides an interface for controlling a motor involved with a particular Deployment.


Definition at line 19 of file WinchDeploymentWidget.h.

Constructor & Destructor Documentation

◆ MotorDeploymentWidget() [1/2]

MotorDeploymentWidget::MotorDeploymentWidget ( QWidget * parent = nullptr)

Constructs a MotorDeploymentWidget without a motor.

Parameters
[in]parentThe parent widget.

◆ MotorDeploymentWidget() [2/2]

MotorDeploymentWidget::MotorDeploymentWidget ( Motor * winch,
QWidget * parent = nullptr )

Constructs a MotorDeploymentWidget for a specific motor.

Parameters
[in]winchThe Motor to control.
[in]parentThe parent widget.

Member Function Documentation

◆ deploymentDialog()

WinchDeploymentDialog * MotorDeploymentWidget::deploymentDialog ( )
protected

Returns or creates the winch deployment dialog for detailed motor control.

Returns
A pointer to the WinchDeploymentDialog.

◆ setMotor()

void MotorDeploymentWidget::setMotor ( Motor * winch)

Sets the motor to control.

Parameters
[in]winchThe Motor to assign to this widget.

◆ startMotor()

void MotorDeploymentWidget::startMotor ( bool up,
bool constant )

Starts the motor in the specified direction and mode.

Parameters
[in]upWhether to move the motor upward (true) or downward (false).
[in]constantWhether to run at constant speed (true) or step mode (false).

The documentation for this class was generated from the following file: