Vex Code V5 Pro - No Motor Groups

I am trying to help a group in my robotics club code something, and for some reason, they cannot create a motor group like it isn’t even an option when they go to configure devices.

Try this command at the start of you code:


motor_group rightDrive(rightFront,rightBack);
1 Like

Here is a topic with examples:

And this is an official API:

https://api.vexcode.cloud/v5/abstract/class/classvex_1_1motor__group

1 Like

Check the version of VEXcode V5 pro they’re using. It may need to be updated.

if this is for a drivetrain, and nothing else is working,
this is my 4- motor tank control code (put this in the while(1) loop in usercontrol)
Right.spin (fwd, Controller1.Axis2.position(), pct );
Left.spin (fwd, Controller1.Axis3.position(), pct);
Right2.spin(fwd, Controller1.Axis2.position(), pct );
Left2.spin (fwd, Controller1.Axis3.position(), pct);
this is my 2-motor drive tank control (put this in the while(1) loop in usercontrol)

Right.spin (fwd, Controller1.Axis2.position(), pct );
Left.spin (fwd, Controller1.Axis3.position(), pct);