We were using a basic simple template code to deploy to an old bot for practice a while ago, but when we tried to drive the robot using our joystick the bot span in a circle when you pushed the joystick forward. However, if you pushed the joystick sideways, then the bot would drive forward. I we tired fixing this by code but couldn’t find the culprit. we ended up switching a jaguar hook-up in order to fix it and that seemed to work. I was wondering how to code to switch the direction of drive motors through jaguars.
I believe your culprit is that the axis on the joystick were switched (in the code). If your joystick is sideways, pushing the stick to the side would be “forward” and pushing the stick forward would be “spin this side”. If you flip the jag, I think you’ll find left and right backwards.
I think you’re looking for the SetInvertedMotor() method.