|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
||||
|
||||
|
Re: Programming joysticks
The joystick's POV hat takes the place of the "pN_wheel", where N is the number of the joystick port you're using. I can only really speak for the joystick which I have right in front of me (the other is at my house, being used to play TIE Fighter
), so YMMV. The two least significant bits of the value change too erratically to be of any use. Here's a listing of the values of the variable when the POV hat is in different positions:Neutral: 001011xx Up Left: 111111xx Up: 111111xx Up Right: 111111xx Left: 011000xx Right: 110010xx Down Left: 101001xx Down: 100101xx Down Right: 110101xx The x's take the place of the two least significant bits, which, as I said earlier, change randomly (at least with this single joystick). Basically, if you can understand binary, you can take advantage of the POV hat for controlling your robot. Hope this helps. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming Compatition | Angela06 | Programming | 30 | 08-04-2005 23:12 |
| Could use some help with joysticks . . . | archiver | 2001 | 5 | 23-06-2002 23:36 |
| Pneumatics electrical wiring and programming | archiver | 2001 | 1 | 23-06-2002 23:10 |
| Calibrating speed controllers and joysticks | thedillybar | Technical Discussion | 4 | 11-02-2002 13:24 |
| pbasic programming | punarhero | Programming | 4 | 21-01-2002 23:32 |