|Single Joystick Problem
|Page 1 of 1|
|Author:||D1581A [ Tue Dec 14, 2010 4:58 pm ]|
|Post subject:||Single Joystick Problem|
So we are basing our user control code off of the single joystick sample program supplied with robotc for our VeX cortex robot. However, we have modified it so that it runs off of two joysticks: (similar to an xbox controller) with steering on the right joystick, and moving forwards/backwards on the left joystick.
Our issue is that with our current code, the right joystick (steering) is reversed. For instance when you push the stick to the right, the robot will turn left and vice-versa. I'm hoping that it's just a simple program fix, and i'm thanking you in advance for your answers.
Supplied below is our user code as it is now.
|Author:||jbflot [ Wed Dec 15, 2010 12:42 pm ]|
|Post subject:||Re: Single Joystick Problem|
Have you considered multiplying the entire value for the steering by -1, to reverse the motor powers? For example, you could change:
Hope that helps!
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group