Thread: Button help
View Single Post
  #1   Spotlight this post!  
Unread 13-02-2010, 11:24
tommy0019's Avatar
tommy0019 tommy0019 is offline
Registered User
FRC #2957
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Minnesota
Posts: 23
tommy0019 is an unknown quantity at this point
Button help

This is my first year programing and our team needs help programing buttons. We are looking to be able to run a CIM motor using imput from the joysticks but have run into some problems.

How can we get it so that the motor spins 360 degrees when the button is pushed and resets after the button is pushed. We don't want to hold down the button to have the motor go but have the motor go with one push of the button. Is is possible for us to get any examples of this?

Also how do we set up initializing the motor and joystick with the begin vi? There is some confusion among our team about how the main code flows and initializes and finishes things since the main project is different visually from last year. Do we have to set up each joystick in the Begin vi and add the motor there? Do we have to put our teleop code inside the case structure or can we leave it in the execute loop outside the case structure?

Thanks.

Last edited by tommy0019 : 13-02-2010 at 11:48.
Reply With Quote