Go to Post ...UFH nominations are like jello, there is always room for one more. - Barry Bonzack [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2012, 16:41
4085's Avatar
4085 4085 is offline
Technical Difficulties
AKA: Sebastian Brosious
FRC #4085 (Technical Difficulties)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Reynoldsburg, Ohio
Posts: 14
4085 is an unknown quantity at this point
Buttons

How do you program buttons to activate an additional motor attached to your joystick? For instance, If I wanted to connect the trigger of our right joystick, where and how would we code that? We have a Logitech Attack 3 joystick and are using labview, if that helps.
  #2   Spotlight this post!  
Unread 07-02-2012, 18:20
WittyUsername's Avatar
WittyUsername WittyUsername is offline
Registered User
FRC #3607 (Technologic)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: New Jersey
Posts: 8
WittyUsername is an unknown quantity at this point
Re: Buttons

Use the 'unbundle' tool. Wire the Joystick's button node to unbundle's node, and you should be good to go. If no options pop up at first, try right clicking the unbundle VI and add an element.

It should work just like the axes, except the buttons only return Boolean variables. Good Luck!
  #3   Spotlight this post!  
Unread 07-02-2012, 23:47
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,906
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: Buttons

In Teleop
  1. position the cursor over the Buttons output node on the Joystick Get
  2. right-click for the menu
  3. Choose Cluster, Class and Variant
  4. Choose Unbundle By Name (the first choice)
  5. Place it on the Block Diagram to the right of the Joystick Get
  6. Wire the Joystick Get Button node to the Unbundle and you should see "Button 1" appear. Expand or change the button to get the buttons you want.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #4   Spotlight this post!  
Unread 08-02-2012, 00:03
Rogue Leader Rogue Leader is offline
Registered User
FRC #0696 (Circuit Breakers)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Glendale, CA
Posts: 78
Rogue Leader is an unknown quantity at this point
Re: Buttons

Unbundle as the previous posts have mentioned, and then, to program a motor function, you can:

1.) Use a case structure to decide how the motor functions, or

2.) Use a true/false selector to pass through a number value; if all you're doing is controlling motor speed, this way is easier than a case structure.

Also, from what I hear, try not to go overboard with putting buttons on the joystick. Let the operator do most of the button pushing, and let the driver do , well, the driving! It makes the driver's job easier.
  #5   Spotlight this post!  
Unread 08-02-2012, 05:42
ehochstein's Avatar
ehochstein ehochstein is offline
Coach, Volunteer & Mentor
AKA: Evan Hochstein
FTC #5943 (ESGM)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Bloomington, Minnesota
Posts: 933
ehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant future
Re: Buttons

You can also check out this thread, Alan Anderson was nice enough to post a picture of what the Labview code should look like.
__________________
Minnesota FIRST Senior Mentor | 2013-?

Stratasys Applications Engineering Technician | 2016-?

2009 Regional Win – 2470 @ 10k Lakes (Thanks 2826 and 1714)
2013 WFFA Recipient – 2470 @ 10K Lakes
2016 Ri3D: 'Snow Problem Reveal
2017 Ri3D: 'Snow Problem Reveal

The opinions expressed above are the personal opinions of the author and do not necessarily represent the views and opinions of any organization the author is affiliated with.
  #6   Spotlight this post!  
Unread 08-02-2012, 16:58
4085's Avatar
4085 4085 is offline
Technical Difficulties
AKA: Sebastian Brosious
FRC #4085 (Technical Difficulties)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Reynoldsburg, Ohio
Posts: 14
4085 is an unknown quantity at this point
Re: Buttons

thank you ALL but now our other issue stopping is the motor running for the shooter. We want to program the button on our joystick. We programmed it so there is 3 variable speeds and one button stopping each of these programs but also so we can re initate the program. TRUST ME we can stop the program (i.e. we have a button that stops teleop.vi completely so we need to re deploy it) thank you
-Team 4085 Technical Difficulties
Closed Thread


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 01: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