|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Hey guys, Okay so I know this has been answered before but I need an answer specifically for java.
I have smart dashboard and no robot in front of me. How can I test for the joystick axis? *I am using a six(well seven)axis PS3 Controller and wanna get it to work like without using any code on the robot.... any help???* Btw, I can't use Windows Game Controller properties because it doesn't really give me the raw axis-es and I can't really use the default ones because I've edited them for reasons... Help? |
|
#2
|
|||
|
|||
|
Re: Test controllers without Robot?[JAVA]
If you have the DS installed (or have the LV runtime for some other reason) you can use this:
http://firstforge.wpi.edu/sf/frs/do/...stick_explorer |
|
#3
|
||||
|
||||
|
Re: Test controllers without Robot?[JAVA]
Quote:
(or lady, I won't judge by name ) This only goes to 6 axis max... I'll try to see if I can manually reprogram and re-enable them, THANKS ![]() |
|
#4
|
||||
|
||||
|
Re: Test controllers without Robot?[JAVA]
Perhaps MotioninJoy can be of some help?
I use it for my PS3 controller to play games on my computer. |
|
#5
|
||||||
|
||||||
|
Re: Test controllers without Robot?[JAVA]
The driver station only reads 6 axes. If you want the 7th axis, you need to use a remapping program and get rid of one of the other axes.
|
|
#6
|
||||
|
||||
|
Re: Test controllers without Robot?[JAVA]
Quote:
So for example, if each axis is normally 16 bits you could make your remapper program squeeze two in if you allocated 8 bits to each. On computer: Code:
uint16_t axis_4_in,axis_7_in,axis_4_out; axis_4_out=(axis_4_in&0xff00) | (axis_7_in>>8); Code:
uint16_t axis_4_in,axis_4_out,axis_7_out; axis_4_out=axis_4_in&0xff00; axis_7_out=axis_4_in<<8; There may be some simpler way to do this like just opening a TCP stream or something; again, I haven't really looked into what you can do with the drivers' station. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|