161 void set(
double cmd);
A Simple Motor_Group Wrapper Class.
void set(double cmd)
Sets the motor to spin at the specified command.
SimpleMotorGroup(vex::motor_group mot)
Construct a new Simple Motor_Group object.
double m_cmd
The command the motor-group is set to, as a percentage of the max.
bool m_speedMode
Whether or not the motor-group should use speed, rather than voltage.
SimpleMotorGroup & withSpeedMode(bool speedMode)
Returns a SimpleMotorGroup refrence with the specified speedMode.
bool getSpeedMode()
Get the SpeedMode of the SimpleMotorGroup.
void setSpeedMode(bool speedMode)
Set the SpeedMode of the SimpleMotorGroup.
double get()
Returns the command the motor-group was last commanded to.
The include file for the Vex Library.