|
Re: Left when pushing right on joystick and vice-versa. Please respond
Think about what's happening - when you tell both sides of the drive to go forward, they go forward, and backward they go backward. It's only when telling them to go in different directions that they get it wrong.
Basically, your robot thinks left is right and right is left. So... I would fix it by telling the robot to turn right when you really want it to go left, and left when you really want it to go right, that way it goes the way you really want it to go.
rot = -mainStick.getX();
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
|