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

#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.
 

Detailed Description

AutoCommand wrapper class for BasicSpinCommand using the vex hardware functions

Constructor & Destructor Documentation

◆ BasicSpinCommand()

BasicSpinCommand::BasicSpinCommand ( vex::motor & motor,
vex::directionType dir,
BasicSpinCommand::type setting,
double power )

Construct a new BasicSpinCommand.

a BasicMotorSpin Command

Parameters
motorMotor to spin
direcDirection of motor spin
settingPower setting in volts,percentage,velocity
powerValue of desired power
motorMotor port to spin
dirDirection for spining
settingPower setting in volts,percentage,velocity
powerValue of desired power

Member Function Documentation

◆ run()

bool BasicSpinCommand::run ( )
override

Runs the BasicSpinCommand Overrides run from Auto Command.

Run the BasicSpinCommand Overrides run from Auto Command.

Returns
True Async running command
True Command runs once

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