42 spin(vex::fwd,
m_cmd, vex::pct);
46 spin(vex::fwd,
m_cmd * 12 / 100.f, vex::volt);
Header containing a simple motor_group wrapper class.
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.