add MoveDistance command
authorKevin Zhang <kevin.zhang.13499@gmail.com>
Sat, 14 Nov 2015 23:31:18 +0000 (15:31 -0800)
committerKevin Zhang <kevin.zhang.13499@gmail.com>
Sat, 14 Nov 2015 23:31:18 +0000 (15:31 -0800)
src/org/usfirst/frc3501/RiceCatRobot/commands/MoveDistance.java [new file with mode: 0644]

diff --git a/src/org/usfirst/frc3501/RiceCatRobot/commands/MoveDistance.java b/src/org/usfirst/frc3501/RiceCatRobot/commands/MoveDistance.java
new file mode 100644 (file)
index 0000000..88827f9
--- /dev/null
@@ -0,0 +1,43 @@
+package org.usfirst.frc3501.RiceCatRobot.commands;
+
+import org.usfirst.frc3501.RiceCatRobot.Robot;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+public class MoveDistance extends Command {
+
+       double distance;
+       
+       public MoveDistance(double distance){
+               requires(Robot.driveTrain);
+               this.distance = distance;
+       }
+       
+       protected void initialize(){
+               
+       }
+
+       @Override
+       protected void execute() {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       protected boolean isFinished() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+       
+       @Override
+       protected void end() {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       protected void interrupted() {
+               // TODO Auto-generated method stub
+               
+       }
+}