Go to Post The people that have posted in this thread are intelligent and I know that when they talk, I need to listen. - rtfgnow [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 28-01-2010, 07:45
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,748
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: How to assign buttons?

Are you starting with the 2010 Sample code? If so, it already reads several joystick buttons. The computer I'm at doesn't have the latest code installed, but if you open the TeleOp.vi file and go to the diagram, you can follow where the joystick wire leads. It may be easiest to drop another Joystick Get function and unbundle the buttons. Wire the buttons to case structures that add, subtract, or leave the desired servo angle alone. Then wire the angle to the servo.

If you haven't already done it, you'll want to add the Servo Opens to Begin.vi, store the value under some named entries, and read the refnum back in TeleOp.vi.

If you are not sure what something does, open and read examples. Also, much of what you need is in the WPILib section of the menu, towards the bottom.

Greg McKaskle
Reply With Quote
 


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
How Many Buttons? Beth Sweet Regional Competitions 13 17-12-2006 21:32
Buttons, Buttons and more Buttons (2006) Freddy Schurr Team Organization 11 14-12-2005 21:36
Can we assign alternate text for [img] and/or [img2] tags? Greg Ross CD Forum Support 2 01-11-2005 14:51
How many buttons do you have? Bcahn836 Chit-Chat 12 01-09-2004 23:34
How many buttons??? purplehaze357 Championship Event 0 18-04-2002 23:54


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

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