From 2c9e6242290513bc518475dc3ec8960cebc28d4f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 24 Mar 2017 08:12:10 -0400 Subject: add another simple auto at Juan's (IRRC) request. --- src/org/usfirst/frc/team4272/robot2017/Autonomous.java | 5 +++++ 1 file changed, 5 insertions(+) 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)), -- cgit v1.2.3-54-g00ecf