Go to Post There is a big difference between "we have not been able to figure out how to do it." and "it's impossible" or "don't even bother." Let's be constructive not discouraging. - PVCMike [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2010, 11:26
MrWibbles's Avatar
MrWibbles MrWibbles is offline
Wibbly-Wobbly User
AKA: Adam S
FRC #2877 (Ligerbots)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Newton, MA
Posts: 21
MrWibbles is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2010, 11:38
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2010, 12:15
berngannon berngannon is offline
Registered User
FLL #8846
 
Join Date: Oct 2009
Location: Clarkfork ID
Posts: 4
berngannon is an unknown quantity at this point
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
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2010, 12:57
MrWibbles's Avatar
MrWibbles MrWibbles is offline
Wibbly-Wobbly User
AKA: Adam S
FRC #2877 (Ligerbots)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Newton, MA
Posts: 21
MrWibbles is an unknown quantity at this point
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2010, 14:51
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Connect to joystick

I think most Hats come in as axis 5 & 6 with values of -1,0,1
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 22:40.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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