![]() |
Joystick control rotated?
Maybe someone out there can help out our all-rookie team.
We're using the 2.4 code on our robot, unmodified. joystick is plugged into port 1 on the OI. We got the robot to move, but when we push the joystick forward, it goes left. when we push it right, it goes forward, when we push it down it goes right and left=reverse. What did we do wrong? did anyone else have this problem? I'd assume something is wrong with our X and Y values, but I searched and couldn't find anything about this. help appreciated, thanks. On the dashboard, the values for the joysticks are outputting to PWM ports 1,5,11 and 12...looking at the code we thought that it should be outputting to 13-16. That's puzzling us also. |
Re: Joystick control rotated?
Quote:
|
Re: Joystick control rotated?
Thanks, we'll try that, though we're still a little confused why the code is outputting the joystick values to PWM 1,5,11, and 12. Is that what it's doing for everyone? When looking at the code it seemed like the motors should be plugged into 13-16. Needless to say, we're very new at this.
thanks for the help. |
Re: Joystick control rotated?
We have found that it's not a good idea to use PWMs 13-16, because if you're using (timer) interrupts elsewhere in your code, those outputs can get a bit unpredictable. Anyway, what PWMs are your Victors connected to? And what code are you using (where you downloaded it from? IFI or www.kevin.org?)? A link would help.
|
Re: Joystick control rotated?
I had written a whole big statement telling you about our problem, but as i was just about to send it, my programmer figured it out and got it working. thank you so much for your time.
|
Re: Joystick control rotated?
Quote:
|
Re: Joystick control rotated?
Quote:
|
| All times are GMT -5. The time now is 03:59. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi