weilin
2
You have several problems with your code.
First, you are missing usercontrol() with its while() loop.
Second, you are mixing buttons and joystick controls.
Please, refer to these topics for examples on how to implement usercontrol()
and then mecanum controls inside its while loop
Also, if you haven’t seen it this is very helpful explanation of the drivetrain class
https://api.vexcode.cloud/v5/html/classvex_1_1drivetrain.html
4 Likes