diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-06 20:53:38 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-06 21:33:07 -0400 |
commit | 97f0f4c548ae405d72b7b4f3bd50bdedb1426279 (patch) | |
tree | 4c44509a0732cd59a54370a5d086319527e4e029 /src | |
parent | 2d0eec1f93f1ee2ff7cd01bcafc737914146c561 (diff) |
after practice match 1
Diffstat (limited to 'src')
-rw-r--r-- | src/org/usfirst/frc/team4272/robot2017/Autonomous.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/org/usfirst/frc/team4272/robot2017/Autonomous.java b/src/org/usfirst/frc/team4272/robot2017/Autonomous.java index 8e5846a..28ec580 100644 --- a/src/org/usfirst/frc/team4272/robot2017/Autonomous.java +++ b/src/org/usfirst/frc/team4272/robot2017/Autonomous.java @@ -96,8 +96,9 @@ public class Autonomous { modeChooser.addObject("Left Peg", robot->new Command[]{ init, driveDistance(robot, 0.4, 8.4), - turnDegrees(robot, 0.4, 70), - driveDistance(robot, 0.4, 2.16), + turnDegrees(robot, 0.4, 71), + timeout(2.5, driveDistance(robot, 0.4, 2.16)), + stop, timeout(1.0, c->false), c->{c.gedOut = true; return true;}, timeout(1.0, c->false), @@ -110,8 +111,9 @@ public class Autonomous { modeChooser.addObject("Right Peg", robot->new Command[]{ init, driveDistance(robot, 0.4, 8.4), - turnDegrees(robot, 0.4, -70), - driveDistance(robot, 0.4, 2.16), + turnDegrees(robot, 0.4, -71), + timeout(2.5, driveDistance(robot, 0.4, 2.16)), + stop, timeout(1.0, c->false), c->{c.gedOut = true; return true;}, timeout(1.0, c->false), |