projects
/
3501
/
stronghold-2016
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix command names and get rid of unused stuff
[3501/stronghold-2016]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
auton
/
PassRoughTerrain.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/auton/PassRoughTerrain.java
b/src/org/usfirst/frc/team3501/robot/commands/auton/PassRoughTerrain.java
index 6706fb38aa280d6a979a86271f264f4dfbd7c689..8851edf697ac4d8b70514618222e9ddb52d6855c 100755
(executable)
--- a/
src/org/usfirst/frc/team3501/robot/commands/auton/PassRoughTerrain.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/auton/PassRoughTerrain.java
@@
-1,10
+1,16
@@
package org.usfirst.frc.team3501.robot.commands.auton;
package org.usfirst.frc.team3501.robot.commands.auton;
-import edu.wpi.first.wpilibj.command.Command;
+import org.usfirst.frc.team3501.robot.commands.driving.DriveForTime;
+
+import edu.wpi.first.wpilibj.command.CommandGroup;
/***
* This command will drive the robot through the rough terrain.
*
/***
* This command will drive the robot through the rough terrain.
*
+ * dependency on subsytems: drivetrain
+ *
+ * dependency on other commands: DriveForTime
+ *
* pre-condition: robot is flush against the ramp of the outerworks in front of
* the rough terrain
*
* pre-condition: robot is flush against the ramp of the outerworks in front of
* the rough terrain
*
@@
-14,30
+20,22
@@
import edu.wpi.first.wpilibj.command.Command;
* @author Meryem and Avi
*
*/
* @author Meryem and Avi
*
*/
-public class PassRoughTerrain extends Command {
-
- public PassRoughTerrain() {
-
- }
+public class PassRoughTerrain extends CommandGroup {
- @Override
- protected void initialize() {
- }
+ // TODO: test for the time
+ private final double BEG_TIME = 0;
+ private final double MID_TIME = 0;
+ private final double END_TIME = 0;
- @Override
- pr
otected void execute() {
- }
+ private final double BEG_SPEED = 0;
+ pr
ivate final double MID_SPEED = 0;
+ private final double END_SPEED = 0;
- @Override
- protected boolean isFinished() {
- return false;
- }
+ public PassRoughTerrain() {
- @Override
- protected void end() {
- }
+ addSequential(new DriveForTime(BEG_TIME, BEG_SPEED));
+ addSequential(new DriveForTime(MID_TIME, MID_SPEED));
+ addSequential(new DriveForTime(END_TIME, BEG_SPEED));
- @Override
- protected void interrupted() {
}
}
}
}