Log in

View Full Version : Drive motors spin wrong way


Spencer Gomez
04-01-2013, 23:54
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.

nathan_hui
05-01-2013, 02:16
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.

Alan Anderson
05-01-2013, 09:24
I think you're looking for the SetInvertedMotor() method.