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
add hella auton
[ozzloy@gmail.com/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 22986611bc8306cea529d00525f0af25b2aa0990..f70b3d280d81aa5acc0b74e853b9ab58540b3118 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/autons/DriveOverStep.java
+++ b/
src/org/usfirst/frc/team3501/robot/autons/DriveOverStep.java
@@
-12,7
+12,13
@@
public class DriveOverStep extends CommandBase {
requires(drivetrain);
setTimeout(RobotMap.OVER_STEP_TIME);
requires(drivetrain);
setTimeout(RobotMap.OVER_STEP_TIME);
- this.speed = RobotMap.OVER_STEP_SPEED;
+ speed = RobotMap.OVER_STEP_SPEED;
+ }
+
+ // TODO: this is an ugly "solution"
+ public DriveOverStep(int coef) {
+ this();
+ this.speed *= coef;
}
protected void execute() {
}
protected void execute() {