View Single Post
  #1   Spotlight this post!  
Unread 17-03-2012, 11:58
heya101 heya101 is offline
Registered User
FRC #3699
 
Join Date: Mar 2011
Location: Minnesota
Posts: 11
heya101 is an unknown quantity at this point
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?
Reply With Quote