View Single Post
  #7   Spotlight this post!  
Unread 16-02-2012, 22:48
Gizmo4 Gizmo4 is offline
Registered User
FRC #9999
Team Role: Student
 
Join Date: Feb 2012
Rookie Year: 2012
Location: NJ
Posts: 13
Gizmo4 is an unknown quantity at this point
Re: Help with Victor & Shooter

Quote:
Originally Posted by compboy07 View Post
OK, so for simple working code, you'll want something like this in your main loop (having initialized the respective joystick and victors, of course).

lazySusanVictor.set(yourJoystick.getX());
if (yourJoystick.getRawButton(buttonTriggerNumber)) shooterVictor.set(1);
else shooterVictor.set(0);
Thank you, but What do you mean by 'shooterVictor'? The shooter mechanism will be using a Banebots motor. We have one victor we will be using- which would be the lazySusanVictor -to turn it left and right. As a rookie, Not sure how this motor would be added or implemented into the code.
Thanks.
And thanks DominickC-not the answer I was hoping for, but thanks for the answer all the same.

Last edited by Gizmo4 : 16-02-2012 at 23:20.
Reply With Quote