1 package org
.usfirst
.frc
.team3501
.robot
.commands
;
3 public class DriveWithJoysticks
extends CommandBase
{
5 public DriveWithJoysticks() {
6 super("DriveWithJoysticks");
10 protected void execute() {
11 double forward
= oi
.getForwardR();
12 double twist
= oi
.getTwistR();
14 // option to lock twist for alignment
15 if (oi
.getRightPressed(3, 4, 5, 6))
18 drivetrain
.drive(forward
, twist
);
21 protected boolean isFinished() {