|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: How to assign buttons?
I'm going to assume he posted in the right forum and is using Labview.
What do you want the buttons to do to the servo positions? Do you want them to move the servos to some setpoint? Or increment the servo position some amount in a given direction? |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |