|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
I'm having issues programming our team's drive motors, and I am programming them on asumptions.
I am assuming that the following is true:joystick left on x-axis = value of 126 to 0 joystick right on x-axis = value of 128 to 255 joystick down on y-axis = 126 to 0 joystick up on y-axis = 128 to 255 Can someone confirm that my assumptions are true, or that their false? Thanks in advance. Last edited by compwiz2008 : 17-01-2008 at 21:19. |
|
#2
|
||||
|
||||
|
Re: Joystick Output Values?
Yes this is correct though i think you are referring to the y when you say up and down.
|
|
#3
|
||||
|
||||
|
yeah.. oops. thinking error... I will edit my original post...
|
|
#4
|
||||
|
||||
|
Re: Joystick Output Values?
if you want just do a quick test
Code:
//This is assuming your controller is in port one of the OI
printf("p1_x= %d p1_y= %d \r",p1_x,p1_y);
|
|
#5
|
||||
|
||||
|
That is an excellent idea. I'm going to put the values onto the dashboardviewer, which will help with programming and also trimming the joystick.
To the post earlier: our team is using the standard kit joysticks. Thanks for everyone's help! ![]() |
|
#6
|
|||
|
|||
|
Re: Joystick Output Values?
Please specify. Do you mean the joysticks that come in the kit or a different joystick? I have a non-kit game port joystick and a saitek joystick that runs through a chiclet. They are the reverse of each other.
The best way to find out is to use the dashboard viewer and look at the values in the OI screen. good luck Steve |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mixing Joystick Values for mecanum wheels | Leav | Programming | 10 | 15-01-2006 14:51 |
| Paint values | capenga | Programming | 1 | 20-02-2005 13:25 |
| Servo Values | DanDon | Motors | 8 | 14-02-2005 15:49 |
| Color Values | WesleyBalmer | Programming | 3 | 15-01-2005 22:26 |
| PWM Values... | Ian W. | Programming | 4 | 17-03-2002 21:53 |