RIT VEXU Core API
Loading...
Searching...
No Matches
BasicStopCommand Class Reference

#include <basic_command.h>

Inherits AutoCommand.

Public Member Functions

 BasicStopCommand (vex::motor &motor, vex::brakeType setting)
 Construct a new BasicMotorStop Command.
 
bool run () override
 Runs the BasicMotorStop Command Overrides run command from AutoCommand.
 

Detailed Description

AutoCommand wrapper class for BasicStopCommand Using the Vex hardware functions

Constructor & Destructor Documentation

◆ BasicStopCommand()

BasicStopCommand::BasicStopCommand ( vex::motor & motor,
vex::brakeType setting )

Construct a new BasicMotorStop Command.

Construct a BasicMotorStop Command.

Parameters
motorThe motor to stop
settingThe brake setting for the motor
motorMotor to stop
settingBraketype setting brake,coast,hold

Member Function Documentation

◆ run()

bool BasicStopCommand::run ( )
override

Runs the BasicMotorStop Command Overrides run command from AutoCommand.

Runs the BasicMotorStop command Ovverides run command from AutoCommand.

Returns
True Command runs once

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