projects
/
ozzloy@gmail.com
/
3501-spark-go
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
big refactor of command/commandbase/commandgroup. also add auton read from file.
[ozzloy@gmail.com/3501-spark-go]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
autons
/
DrivePastStep.java
diff --git
a/src/org/usfirst/frc/team3501/robot/autons/DrivePastStep.java
b/src/org/usfirst/frc/team3501/robot/autons/DrivePastStep.java
index d3105f849a0eab994acf68d5682116a8baac07b1..f45975064b74726adaf3c195bd902648e1c54b0d 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/autons/DrivePastStep.java
+++ b/
src/org/usfirst/frc/team3501/robot/autons/DrivePastStep.java
@@
-1,9
+1,8
@@
package org.usfirst.frc.team3501.robot.autons;
package org.usfirst.frc.team3501.robot.autons;
-import org.usfirst.frc.team3501.robot.RobotMap;
-import org.usfirst.frc.team3501.robot.commands.CommandBase;
+import org.usfirst.frc.team3501.robot.commands.Command;
-public class DrivePastStep extends Command
Base
{
+public class DrivePastStep extends Command {
private double speed;
private double speed;
@@
-11,8
+10,8
@@
public class DrivePastStep extends CommandBase {
super("DrivePastStep");
requires(drivetrain);
super("DrivePastStep");
requires(drivetrain);
- setTimeout(
RobotMap.PAST_STEP_TIME
);
-
this.speed = RobotMap.PAST_STEP_SPEED
;
+ setTimeout(
autonData.getTime("drive_past_step")
);
+
speed = autonData.getSpeed("drive_past_step")
;
}
protected void execute() {
}
protected void execute() {