View Single Post
  #9   Spotlight this post!  
Unread 17-02-2012, 11:30
tmohall tmohall is offline
Registered User
AKA: Trevon Hall
FRC #3963 (urbanRobots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Milwaukee, WI
Posts: 3
tmohall is an unknown quantity at this point
Send a message via MSN to tmohall
Re: Joystick Buttons to Control Jaguars

Quote:
Originally Posted by Alan Anderson View Post
For an application like this, some people would suggest Case blocks, but I prefer using Select functions. They switch between one of two input values based on a boolean input. The cascaded Select for the Wheels motor will output 1 whenever Button 2 is pressed, -1 when Button 2 is not pressed and Button 3 is, and 0 when neither button is pressed. Change the constants to make the motors run at something less than full speed.
I tried building the code but it didnt work and we have an arm and we want the one of the buttons to pick up the ball, shot the ball, and load it so we can shot the ball
Reply With Quote