RIT VEXU Core API
|
#include <basic_command.h>
Inherits AutoCommand.
Public Member Functions | |
BasicSpinCommand (vex::motor &motor, vex::directionType dir, BasicSpinCommand::type setting, double power) | |
Construct a new BasicSpinCommand. | |
bool | run () override |
Runs the BasicSpinCommand Overrides run from Auto Command. | |
AutoCommand wrapper class for BasicSpinCommand using the vex hardware functions
BasicSpinCommand::BasicSpinCommand | ( | vex::motor & | motor, |
vex::directionType | dir, | ||
BasicSpinCommand::type | setting, | ||
double | power ) |
Construct a new BasicSpinCommand.
a BasicMotorSpin Command
motor | Motor to spin |
direc | Direction of motor spin |
setting | Power setting in volts,percentage,velocity |
power | Value of desired power |
motor | Motor port to spin |
dir | Direction for spining |
setting | Power setting in volts,percentage,velocity |
power | Value of desired power |
|
override |
Runs the BasicSpinCommand Overrides run from Auto Command.
Run the BasicSpinCommand Overrides run from Auto Command.