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");
13 protected void execute() {
14 double forward
= oi
.getForwardR();
15 double twist
= oi
.getTwistR();
17 // option to lock twist for alignment
18 if (oi
.getRightPressed(3, 4, 5, 6))
21 drivetrain
.drive(forward
, twist
);
24 protected boolean isFinished() {