summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-03-24 08:12:10 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-03-24 08:12:10 -0400
commit2c9e6242290513bc518475dc3ec8960cebc28d4f (patch)
treeb7517d213c525f179a451c648332883c2deb13f2
parentf06d9ac82cc3f02fa6be83a56a9588cdff3c48f4 (diff)
add another simple auto at Juan's (IRRC) request.
-rw-r--r--src/org/usfirst/frc/team4272/robot2017/Autonomous.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/org/usfirst/frc/team4272/robot2017/Autonomous.java b/src/org/usfirst/frc/team4272/robot2017/Autonomous.java
index 901e22a..021a00a 100644
--- a/src/org/usfirst/frc/team4272/robot2017/Autonomous.java
+++ b/src/org/usfirst/frc/team4272/robot2017/Autonomous.java
@@ -74,6 +74,11 @@ public class Autonomous {
Command stop = c->{c.lDrive = c.rDrive = 0; return true;};
+ modeChooser.addObject("Drive 10 feet", robot->new Command[]{
+ init,
+ driveDistance(robot, 0.4, 10),
+ stop,
+ });
modeChooser.addObject("Center Peg", robot->new Command[]{
init,
timeout(6.0, driveDistance(robot, 0.4, 8.75)),