add all DriveTrain commands
authorMeryem Esa <meresa14@gmail.com>
Sun, 17 Jan 2016 01:00:20 +0000 (17:00 -0800)
committerMeryem Esa <meresa14@gmail.com>
Sun, 17 Jan 2016 01:00:20 +0000 (17:00 -0800)
src/org/usfirst/frc/team3501/robot/commands/Align.java [new file with mode: 0755]
src/org/usfirst/frc/team3501/robot/commands/Drive.java [new file with mode: 0755]
src/org/usfirst/frc/team3501/robot/commands/DriveForDistance.java [new file with mode: 0755]
src/org/usfirst/frc/team3501/robot/commands/TurnForAngle.java [new file with mode: 0755]
src/org/usfirst/frc/team3501/robot/commands/TurnForTime.java [new file with mode: 0755]

diff --git a/src/org/usfirst/frc/team3501/robot/commands/Align.java b/src/org/usfirst/frc/team3501/robot/commands/Align.java
new file mode 100755 (executable)
index 0000000..9d1b1b1
--- /dev/null
@@ -0,0 +1,36 @@
+package org.usfirst.frc.team3501.robot.commands;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ *
+ */
+public class Align extends Command {
+
+    public Align() {
+        // Use requires() here to declare subsystem dependencies
+        // eg. requires(chassis);
+    }
+
+    // Called just before this Command runs the first time
+    protected void initialize() {
+    }
+
+    // Called repeatedly when this Command is scheduled to run
+    protected void execute() {
+    }
+
+    // Make this return true when this Command no longer needs to run execute()
+    protected boolean isFinished() {
+        return false;
+    }
+
+    // Called once after isFinished returns true
+    protected void end() {
+    }
+
+    // Called when another command which requires one or more of the same
+    // subsystems is scheduled to run
+    protected void interrupted() {
+    }
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/Drive.java b/src/org/usfirst/frc/team3501/robot/commands/Drive.java
new file mode 100755 (executable)
index 0000000..0cb56c2
--- /dev/null
@@ -0,0 +1,36 @@
+package org.usfirst.frc.team3501.robot.commands;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ *
+ */
+public class Drive extends Command {
+
+    public Drive(double speed) {
+        // Use requires() here to declare subsystem dependencies
+        // eg. requires(chassis);
+    }
+
+    // Called just before this Command runs the first time
+    protected void initialize() {
+    }
+
+    // Called repeatedly when this Command is scheduled to run
+    protected void execute() {
+    }
+
+    // Make this return true when this Command no longer needs to run execute()
+    protected boolean isFinished() {
+        return false;
+    }
+
+    // Called once after isFinished returns true
+    protected void end() {
+    }
+
+    // Called when another command which requires one or more of the same
+    // subsystems is scheduled to run
+    protected void interrupted() {
+    }
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/DriveForDistance.java b/src/org/usfirst/frc/team3501/robot/commands/DriveForDistance.java
new file mode 100755 (executable)
index 0000000..fdb952d
--- /dev/null
@@ -0,0 +1,35 @@
+package org.usfirst.frc.team3501.robot.commands;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ *
+ */
+public class DriveForDistance extends Command {
+
+    public DriveForDistance(double distance, double speed) {
+        
+    }
+
+    // Called just before this Command runs the first time
+    protected void initialize() {
+    }
+
+    // Called repeatedly when this Command is scheduled to run
+    protected void execute() {
+    }
+
+    // Make this return true when this Command no longer needs to run execute()
+    protected boolean isFinished() {
+        return false;
+    }
+
+    // Called once after isFinished returns true
+    protected void end() {
+    }
+
+    // Called when another command which requires one or more of the same
+    // subsystems is scheduled to run
+    protected void interrupted() {
+    }
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/TurnForAngle.java b/src/org/usfirst/frc/team3501/robot/commands/TurnForAngle.java
new file mode 100755 (executable)
index 0000000..2825f58
--- /dev/null
@@ -0,0 +1,36 @@
+package org.usfirst.frc.team3501.robot.commands;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ *
+ */
+public class TurnForAngle extends Command {
+
+    public TurnForAngle(double degrees) {
+        // Use requires() here to declare subsystem dependencies
+        // eg. requires(chassis);
+    }
+
+    // Called just before this Command runs the first time
+    protected void initialize() {
+    }
+
+    // Called repeatedly when this Command is scheduled to run
+    protected void execute() {
+    }
+
+    // Make this return true when this Command no longer needs to run execute()
+    protected boolean isFinished() {
+        return false;
+    }
+
+    // Called once after isFinished returns true
+    protected void end() {
+    }
+
+    // Called when another command which requires one or more of the same
+    // subsystems is scheduled to run
+    protected void interrupted() {
+    }
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/TurnForTime.java b/src/org/usfirst/frc/team3501/robot/commands/TurnForTime.java
new file mode 100755 (executable)
index 0000000..1b8e523
--- /dev/null
@@ -0,0 +1,36 @@
+package org.usfirst.frc.team3501.robot.commands;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ *
+ */
+public class TurnForTime extends Command {
+
+    public TurnForTime(double seconds) {
+        // Use requires() here to declare subsystem dependencies
+        // eg. requires(chassis);
+    }
+
+    // Called just before this Command runs the first time
+    protected void initialize() {
+    }
+
+    // Called repeatedly when this Command is scheduled to run
+    protected void execute() {
+    }
+
+    // Make this return true when this Command no longer needs to run execute()
+    protected boolean isFinished() {
+        return false;
+    }
+
+    // Called once after isFinished returns true
+    protected void end() {
+    }
+
+    // Called when another command which requires one or more of the same
+    // subsystems is scheduled to run
+    protected void interrupted() {
+    }
+}