Hello,
I’m curious on how to code the autonomous to 4 motors/2 motor groups. Currently when I code it the left side goes the opposite direction of the right. How would I fix this?
The spinFor() code needs three parts. The direction, a number, and a unit. In your code, you don’t have a direction. Yes, it doesn’t come up with an error, but code can be finicky, so I’d put it in like it was designed to do.
Format according to vexcodeV5
This is what it gives for the example
Motor.spinFor(directionType, rotation, units);
Maybe try putting in the forward part, that is possibly the issue, it could be confused on the direction to go.
Also, are you using a mecanum drive? Because if you are, then it would make sense to be using the separated motors, but if you are just doing a normal drive, then I suggest just using the drivetrain device option.