MotorGroup& stop(brakeType brake)
Stops all motors in the group with the specified brake type.
Parameters
brake- the brake type to stop the motors with
Example
vex::motor m1 = vex::motor(vex::PORT1);
vex::motor m2 = vex::motor(vex::PORT2);
vex::motor m3 = vex::motor(vex::PORT3);
vex::motor m4 = vex::motor(vex::PORT4);
MotorGroup mg = MotorGroup(m1, m2, m3, m4);
//... later in some function
mg.stop(coast);
//Stops all the motors on coast