Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Connect to joystick (http://www.chiefdelphi.com/forums/showthread.php?t=82006)

MrWibbles 06-02-2010 11:26

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.

Greg McKaskle 06-02-2010 11:38

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

berngannon 06-02-2010 12:15

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

MrWibbles 06-02-2010 12:57

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.

Mark McLeod 06-02-2010 14:51

Re: Connect to joystick
 
I think most Hats come in as axis 5 & 6 with values of -1,0,1


All times are GMT -5. The time now is 12:07.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi