View Full Version : Movement Troubles
jaketessem
01-02-2010, 15:55
We have attained wireless movement with our robot and everything is working properly... except that when we move our joystick right our robot turns left and when we move our joystick left our robot moves right. Please Help!!!
JBotAlan
01-02-2010, 15:57
Do forward and back behave properly? If so, you can probably just physically swap the left and right PWMs or the connections to the motors.
If you'd like to get into the code, you'd have to let us know which environment you are using (LabVIEW, WindRiver, Java).
jaketessem
01-02-2010, 16:10
forward and back are the same, and we use labview
Greg McKaskle
01-02-2010, 20:30
The question was Do forward and back behave properly?
The answer was forward and back are the same
Since that doesn't answer the question, nobody can tell you whether you accidentally swapped the PWM channels, whether you need to invert the motor inputs on Open, or both.
There are four combinations, so you can try all four and see which works better, you can look carefully at the wiring and the code and make sure that the PWM are correct and try the combinations of invert, or you can describe the behaviors with more detail and someone can help you debug.
Either way, I'm sure you'll get it working quickly.
Greg McKaskle
jaketessem
05-02-2010, 16:33
Forward and back behave properly, but when we move our joystick left our robot goes right and when we move our joystick right our robot moves left. We tried switching the wires around on our Jaguar brand PWM's but that reversed forward and back, but did not fix left and right.
We use Labview, if there is a programming solution then please help me in finding it.
Vikesrock
05-02-2010, 16:36
Forward and back behave properly, but when we move our joystick left our robot goes right and when we move our joystick right our robot moves left. We tried switching the wires around on our Jaguar brand PWM's but that reversed forward and back, but did not fix left and right.
We use Labview, if there is a programming solution then please help me in finding it.
I believe changing PWMs between left and right and changing which motor is inverted in the code should solve the problem.
I'm not absolutely sure this is correct so hopefully if I'm completely wrong somebody will hop in before you bother to try it.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.