|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Programming Logitech Gamepad F310
Now, I might be very wrong, so remember to put the robot on cinder blocks or something so it does not go haywire and dangerous. A safe way is just outputting the throttle and z on the console window using System.out.println();
|
|
#2
|
||||
|
||||
|
Re: Programming Logitech Gamepad F310
Thanks for this thread. I assume this means that If our driver station is running on a Windows 7 laptop and Win7 sees the gamepad and loads the drivers then the wpilibj will see the controllers as a Joystick.? Or is it more like XP and we have to find and install a .dll for the gamepad we choose?
|
|
#3
|
|||
|
|||
|
Re: Programming Logitech Gamepad F310
Quote:
|
|
#4
|
||||
|
||||
|
Re: Programming Logitech Gamepad F310
I find it good to use the getRawAxis() command. It lets you use all four or five axis from a game controller (two for each stick, one for the triggers on the xbox 360 controllers my team used last year) easily, just by specifying the number, which is relatively easy to determine via trial and error.
EDIT: For buttons, I use getRawButton() in the same way (give it the number of the button). One issue I had was that the D pad wouldn't work, but I think thats because it is read as a 2D position, not a single axis, or something like that. Last edited by JewishDan18 : 12-01-2011 at 23:35. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|