5e935c97e0c99294eb9c32411107883a3a2fcc18
1 package org
.usfirst
.frc
.team3501
.robot
.commands
;
3 import org
.usfirst
.frc
.team3501
.bases
.Command
;
5 public class DriveWithJoysticks
extends Command
{
7 public DriveWithJoysticks() {
8 super("DriveWithJoysticks");
12 protected void execute() {
13 double forward
= oi
.getForwardR();
14 double twist
= oi
.getTwistR();
16 // option to lock twist for alignment
17 if (oi
.getRightPressed(3, 4, 5, 6))
20 drivetrain
.drive(forward
, twist
);
23 protected boolean isFinished() {