projects
/
3501
/
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.
[3501/3501-spark-go]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
autons
/
DriveOverStep.java
diff --git
a/src/org/usfirst/frc/team3501/robot/autons/DriveOverStep.java
b/src/org/usfirst/frc/team3501/robot/autons/DriveOverStep.java
index f70b3d280d81aa5acc0b74e853b9ab58540b3118..224bc9ca5eac3c0a2a644cfbf4e0915c34c5dce6 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/autons/DriveOverStep.java
+++ b/
src/org/usfirst/frc/team3501/robot/autons/DriveOverStep.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 DriveOverStep extends Command
Base
{
+public class DriveOverStep extends Command {
private double speed;
private double speed;
@@
-11,8
+10,8
@@
public class DriveOverStep extends CommandBase {
super("DriveOverStep");
requires(drivetrain);
super("DriveOverStep");
requires(drivetrain);
- setTimeout(
RobotMap.OVER_STEP_TIME
);
- speed =
RobotMap.OVER_STEP_SPEED
;
+ setTimeout(
autonData.getTime("drive_over_step")
);
+ speed =
autonData.getSpeed("drive_over_step")
;
}
// TODO: this is an ugly "solution"
}
// TODO: this is an ugly "solution"