Go to Post "PWMed" - Sam N. [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 20-01-2013, 00:15
BPtigers BPtigers is offline
Registered User
FRC #4663 (i8sumpi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Minnesota
Posts: 25
BPtigers is an unknown quantity at this point
Setting the + knob on the joystick as the power setting for a motor?

I am coding an arm with a hook to climb the pyramid. Right now I was able to program the jaguar motor to go up at .5 power with button three on joystick, and go down with button 2 on joystick, at -.5 power. My question is I don't want a constant .5 power when I climb, sometimes if I'm short on time I'd like to be able to climb at 1 or -1 for example, but a button input is either on or off. I was wondering if there's a way to make it so when I click the 3rd button it makes the + button my vertical climb speed, but then when I release the 3rd button the + button doesn't do anything. Also if I where to click the 2nd button and use the + button as my vertical speed down, and when I release the 2nd button the + knob does nothing. If somebody knows how to do this, you'd make my day, thanks. picture is attached with what I have done.
Attached Thumbnails
Click image for larger version

Name:	labview +.JPG
Views:	27
Size:	26.2 KB
ID:	13586  
__________________
Ben
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2013, 00:33
team3039 team3039 is offline
Registered User
FRC #3039
 
Join Date: Jan 2013
Location: Destrehan, LA
Posts: 34
team3039 is an unknown quantity at this point
Re: Setting the + knob on the joystick as the power setting for a motor?

Simply use an "AND" gate in the Boolean section. Hook up the + button and button 3 to one AND gate, and the + button and button 2 to the other AND gate. You can use 2 different case structures and hook up the AND gates to them.

PM me if you need something more than the above
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2013, 13:58
BPtigers BPtigers is offline
Registered User
FRC #4663 (i8sumpi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Minnesota
Posts: 25
BPtigers is an unknown quantity at this point
Re: Setting the + knob on the joystick as the power setting for a motor?

Is there any chance that you have a visual for this, I understand somewhat I'm a newbie so I'm still figuring it out lol.
__________________
Ben
Reply With Quote
  #4   Spotlight this post!  
Unread 20-01-2013, 14:04
team3039 team3039 is offline
Registered User
FRC #3039
 
Join Date: Jan 2013
Location: Destrehan, LA
Posts: 34
team3039 is an unknown quantity at this point
Re: Setting the + knob on the joystick as the power setting for a motor?

I left my programming computer at school. I'm not quite sure I understood exactly how you wanted the buttons to interact. PM me, and I will send you a visual tomorrow
Reply With Quote
  #5   Spotlight this post!  
Unread 20-01-2013, 14:38
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Setting the + knob on the joystick as the power setting for a motor?

What are the + knob and + buttons?

If you have a joystick throttle control (like the one at the base of the stick on an Attack 3), just read its value and use that instead of the constant 0.5 in the case block.
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 08:35.

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