Go to Post We tried to get clear aluminum, but it was on back order. They said it would be in by March 3, 2150. - S.Nickens [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 29-01-2011, 17:06
ahudson ahudson is offline
Registered User
FRC #3179
 
Join Date: Jan 2010
Location: aDAIR
Posts: 47
ahudson is infamous around these parts
programming joystick buttons

We are attempting to use the multiple buttons on the joystick this year for some of our pneumatics programming and are clueless. First question we have is when you are building the program, how do you identify which button is which? Also is it possible to hub the classmate, a laptop, and the cRio and work on them simultaneously so that you can see them all work?
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2011, 19:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,756
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: programming joystick buttons

Quote:
Originally Posted by ahudson View Post
We are attempting to use the multiple buttons on the joystick this year for some of our pneumatics programming and are clueless. First question we have is when you are building the program, how do you identify which button is which?
You access the buttons from a Joystick Get. It's done the same way as the axes. right-click on the buttons output node, choose Cluster, Class, & Variant Palette -> Unbundle by Name. place the icon you get and wire it to the buttons node on the Joystick Get.
You should see "Button 1".
Expand the box the see more of the buttons, or use the hand to switch to a different button.

Quote:
Originally Posted by ahudson View Post
Also is it possible to hub the classmate, a laptop, and the cRio and work on them simultaneously so that you can see them all work?
Yes, the D-Link you got in the Kit can be used this way.
You just need to keep all the IP addresses in the same 10.xx.yy.zz range.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2011, 01:03
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: programming joystick buttons

On top of what he said if you need to know exactly which buttons you are pressing if you take that same code and run it on the robot and then probe the wire off of the Joystick DevRef Set/Get (the pink wire in the begin/teleop) it will show a table with all of the axes and buttons.
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
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


All times are GMT -5. The time now is 18:33.

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