projects
/
3501
/
stronghold-2016
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement code for PassRampart command group
[3501/stronghold-2016]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
auton
/
PassRampart.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/auton/PassRampart.java
b/src/org/usfirst/frc/team3501/robot/commands/auton/PassRampart.java
index f381af4f1c8465c4706e1b983c217d13153cc755..5e894f5e5a308e8be8b783ee058651ea5183054c 100755
(executable)
--- a/
src/org/usfirst/frc/team3501/robot/commands/auton/PassRampart.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/auton/PassRampart.java
@@
-1,6
+1,6
@@
package org.usfirst.frc.team3501.robot.commands.auton;
package org.usfirst.frc.team3501.robot.commands.auton;
-import edu.wpi.first.wpilibj.command.Command;
+import edu.wpi.first.wpilibj.command.Command
Group
;
/***
* This command will drive the robot through the rampart.
/***
* This command will drive the robot through the rampart.
@@
-13,30
+13,22
@@
import edu.wpi.first.wpilibj.command.Command;
* @author Meryem and Avi
*
*/
* @author Meryem and Avi
*
*/
-public class PassRampart extends Command {
- public PassRampart() {
-
- }
+public class PassRampart extends CommandGroup {
- @Override
- protected void initialize() {
- }
+ public PassRampart() {
- @Override
- protected void execute() {
- }
+ final double BEG_TIME = 0;
+ final double BEG_SPEED = 0;
+ final double MID_TIME = 0;
+ final double MID_SPEED = 0;
+ final double END_TIME = 0;
+ final double END_SPEED = 0;
- @Override
- protected boolean isFinished() {
- return false;
- }
+ addSequential(new DriveForTime(BEG_TIME, BEG_SPEED));
+ addSequential(new DriveForTime(MID_TIME, MID_SPEED));
+ addSequential(new DriveForTime(END_TIME, END_SPEED));
- @Override
- protected void end() {
}
}
- @Override
- protected void interrupted() {
- }
}
}