Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Multiple Inputs for a Motor (http://www.chiefdelphi.com/forums/showthread.php?t=104720)

heya101 17-03-2012 11:58

Multiple Inputs for a Motor
 
So our team wanted a backup system for our shooter which would be controlled by the throttle(knob) on the joystick. I can wire this up fine, but I'm wondering how I'd incorporate the code for when I want the shooter to set its speed automatically by the distance, since the motors would then receive two conflicting inputs.

Say the throttle is set at 0 speed, but I press the button for the automatic shooting, saying we need about .5 speed to get in the basket, how would I have the code make this override the throttle input?

Ether 17-03-2012 12:44

Re: Multiple Inputs for a Motor
 
1 Attachment(s)
Quote:

Originally Posted by heya101 (Post 1145250)
Say the throttle is set at 0 speed, but I press the button for the automatic shooting, saying we need about .5 speed to get in the basket, how would I have the code make this override the throttle input?

The button selects either the "button speed" or the "non-button speed".

kws4000 17-03-2012 12:47

Re: Multiple Inputs for a Motor
 
1 Attachment(s)
Just copy and paste this into wherever. Wire up your auto-shooter speed to BOTTOM (I did this too quickly), and manual speed control to TOP. That way, when button is pressed, the Auto Speed control is overridden.

kws4000 17-03-2012 12:48

Re: Multiple Inputs for a Motor
 
You're fast, Ether!

heya101 17-03-2012 13:35

Re: Multiple Inputs for a Motor
 
Thanks a lot, was exactly what I was looking for.


All times are GMT -5. The time now is 11:20.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi