|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Xbox Controller?
Any other team use an xbox controller for their robot? We figured most of the functionalities of a joystick pair up fairly well with the xbox controller, for instance, getTwist() is Y for the right joystick and getThrottle() is left. How do we access the current value of the view hat i.e. the arrow keys between the two joysticks. Thanks in advance!
|
|
#2
|
||||
|
||||
|
Re: Xbox Controller?
Quote:
The left & right joysticks use 2 each as expected, but the two triggers also use an axis with the left trigger giving negative values and the right positive. Thus the amount of trigger displacement can be detected, not just a binary value of each trigger. The Directional Pad (D-pad) uses the 6th and 7th axis, but you only have access to the 6th axis via getRawAxis. Therefore code can detect left & right directions on the D-pad, but not up / down. A more complete answer including button mappings can be found here: http://www.chiefdelphi.com/forums/sh...45&postcount=8 There may be a way of circumventing the standard XBox axis mapping through its device driver, but I haven't looked into that. |
|
#3
|
|||||
|
|||||
|
Re: Xbox Controller?
Just wondering, has anyone been able to use the "rumble" feature of the xbox controller?
-RC |
|
#4
|
||||
|
||||
|
Re: Xbox Controller?
Quote:
I read that the ZomB dashboard package supports rumble feedback http://www.chiefdelphi.com/forums/sh...ad.php?t=88306. |
|
#5
|
||||
|
||||
|
Re: Xbox Controller?
Quote:
Videos: http://thecatattack.org/ZomB (@1:05) http://thecatattack.org/user/PatrickP/ryantest (first video on page) |
|
#6
|
|||||
|
|||||
|
Re: Xbox Controller?
Quote:
Even though my team isn't using the ZomB dashboard, how do you do it in Java? Thanks, -RC |
|
#7
|
||||
|
||||
|
Re: Xbox Controller?
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|