|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Connect to joystick
Where does the default robot code actually communicate with the joystick? Every VI I looked in (Begin, Teleop, and their contents) played with data types without ever having a "GetPacketsFromTheDamnJoystick.vi" or anything.
I'm interested in this because I'm trying to hack apart the WPI joystick VIs so I can open a joystick on my computer. I want to see which axes map to which, for example, without needing to connect to the robot. |
|
#2
|
|||
|
|||
|
Re: Connect to joystick
The robot code doesn't directly "talk to" the joysticks. The robot code receives control packets from the drivers station, and it is the driver station that receives HID data from the joysticks.
What was the actual question? I believe you can use the LV joystick VIs, or even the MS game controller control panel to determine which axis will be returned as which. I'd have to reverse engineer some stuff to make sure of it though. Greg McKaskle |
|
#3
|
|||
|
|||
|
Re: Connect to joystick
Greg,
I'm a coach wth no communication to motors with week to go. Sounds like you've got some labview chops. Call me if you can help, 5098388471 I'm from rural ID. not much support arround here. Thanks Bern |
|
#4
|
||||
|
||||
|
Re: Connect to joystick
Greg: That makes sense! Thanks for the explanation.
I was hoping to write a separate project that I could run on my computer, that would allow me to get axis/button data from the joystick without needing the whole driver station / robot setup. The data differs from what the default Connectivity VIs give; for example, the axes map slightly differently and there's no POV. Actually, the *real* problem is that I'm looking for something corresponding to our joystick's POV hat, which is trivial with the Connectivity VIs but apparently missing from the FIRST joystick VIs. |
|
#5
|
|||||
|
|||||
|
Re: Connect to joystick
I think most Hats come in as axis 5 & 6 with values of -1,0,1
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cypress IO board connect | SteveD | FRC Control System | 12 | 16-01-2010 16:46 |
| I/O Board Cannot Connect | Haragorn | FRC Control System | 2 | 14-01-2010 13:50 |
| Directly connect to camera | brianelite | Electrical | 2 | 09-02-2009 00:47 |
| Where to connect IR bored? | iPilipino | Sensors | 2 | 18-02-2008 10:29 |
| connect laptop to tv | mormannoob | Chit-Chat | 6 | 02-03-2007 00:21 |