diff options
author | Deveveloper <Deveveloper@netbook> | 2017-03-23 01:47:29 -0400 |
---|---|---|
committer | Deveveloper <Deveveloper@netbook> | 2017-03-23 01:47:29 -0400 |
commit | 4e2b11e4df2f724a0e2d66c28bc465126a1c9d37 (patch) | |
tree | 601ae20fec63f42790a3e699412d522ecfcde9b0 /src/org/usfirst/frc/team4272/robot2016/Autonomous.java | |
parent | ed3db134b11bc37d9a4bad77b1e92aea71daf564 (diff) |
Changes sitting on netbooknetbook-workspace2
Diffstat (limited to 'src/org/usfirst/frc/team4272/robot2016/Autonomous.java')
-rw-r--r-- | src/org/usfirst/frc/team4272/robot2016/Autonomous.java | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/org/usfirst/frc/team4272/robot2016/Autonomous.java b/src/org/usfirst/frc/team4272/robot2016/Autonomous.java deleted file mode 100644 index 756c33d..0000000 --- a/src/org/usfirst/frc/team4272/robot2016/Autonomous.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.usfirst.frc.team4272.robot2016; - -import edu.wpi.first.wpilibj.Timer; -import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; - -public class Autonomous { - private final Timer time = new Timer(); - private final HwRobot robot; - - public Autonomous(HwRobot robot) { - this.robot = robot; - time.reset(); - time.start(); - } - - public Control run(Control c) { - if (robot.armL.get()) { - c.arm = -0.5; - } else { - c.arm = 0; - robot.armE.reset(); - } - - if (time.get() < 4) { - c.lDrive1 = c.rDrive1 = -0.4; - } else { - c.lDrive1 = c.rDrive1 = 0; - } - SmartDashboard.putNumber("autoTime", time.get()); - - return c; - } -} |