|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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. Last edited by silliewillie : 12-02-2005 at 13:29. Reason: wanted to add more information about my problem |
|
#2
|
|||||
|
|||||
|
Re: Joystick control rotated?
Quote:
![]() |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||||
|
|||||
|
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.
|
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
|||||
|
|||||
|
Re: Joystick control rotated?
Quote:
![]() |
|
#7
|
|||||
|
|||||
|
Re: Joystick control rotated?
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| We need help with joystick control | Team ICE #1611 | Control System | 4 | 24-01-2005 15:57 |
| Single joystick control problem | Mr. Van | Programming | 7 | 23-11-2004 09:10 |
| One Joystick Control | KWalsh | Programming | 4 | 24-02-2004 17:53 |
| Changing 1 joystick code to 2 (rookie team) | Brawler006 | Programming | 5 | 20-02-2004 17:00 |
| how do i control a piston with a joystick | Ryan Foley | Programming | 2 | 27-05-2003 17:13 |