View Single Post
  #1   Spotlight this post!  
Unread 05-02-2016, 09:57
VrewDaive VrewDaive is offline
Registered User
FRC #4284
 
Join Date: Sep 2015
Location: Cincinnati
Posts: 21
VrewDaive is an unknown quantity at this point
teleop drive changing help

Hey all! Our team is having 2 seperate drives that we want to have change.
The goal is to have one button on the Xbox controller Right now its MoveStick.getRawButton(0) and MoveStick.getRawButton(1).
there's a group of motors, lets call them catcher, catcher1, catcher2.
button 0 should make catcher and catcher1 drive.
button 1 should make catcher1 and catcher 2 drive.
We don't need to control turning or anything so the ".drive"method should work. I wish i had the code with me but its on a computer elsewhere in the building. I hope i was descriptive enough. Thanks!


// i've created drives for each of the two being used they are
RobotDrive front = new RobotDrive(catcher, catcher1);
RobotDrive rear = new RobotDrive(catcher1, catcher2);
Thanks!!
Reply With Quote