add hella auton
[3501/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / commands / DriveWithJoysticks.java
CommitLineData
b449387d
LH
1package org.usfirst.frc.team3501.robot.commands;
2
3public class DriveWithJoysticks extends CommandBase {
4
5 public DriveWithJoysticks() {
6 super("DriveWithJoysticks");
7 requires(drivetrain);
8 }
9
10 protected void execute() {
e81578e3
LH
11 double forward = oi.getForwardR();
12 double twist = oi.getTwistR();
13
14 if (oi.getRightPressed(3, 4, 5, 6))
15 twist = 0;
16
17 drivetrain.drive(forward, twist);
b449387d
LH
18 }
19
20 protected boolean isFinished() {
21 return false;
22 }
23}