summaryrefslogtreecommitdiff
path: root/src/org/usfirst/frc/team4272/robot2015/Autonomous.java
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-01-16 11:24:32 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-01-16 11:24:32 -0500
commitb655dbdba8532f31b13b410f2dfedbbb3775dba3 (patch)
treec8e1b72d1bf2ad54b93b04a8cf47ca3079acbad8 /src/org/usfirst/frc/team4272/robot2015/Autonomous.java
parent7080d2167ae2447ef18f3ba15d2bc39a880b4dc8 (diff)
The last commit was corrupted; this is it re-createdHEADmaster
Diffstat (limited to 'src/org/usfirst/frc/team4272/robot2015/Autonomous.java')
-rw-r--r--src/org/usfirst/frc/team4272/robot2015/Autonomous.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/org/usfirst/frc/team4272/robot2015/Autonomous.java b/src/org/usfirst/frc/team4272/robot2015/Autonomous.java
index 5d48588..162d00b 100644
--- a/src/org/usfirst/frc/team4272/robot2015/Autonomous.java
+++ b/src/org/usfirst/frc/team4272/robot2015/Autonomous.java
@@ -15,8 +15,13 @@ public class Autonomous {
}
public Control run(Control c) {
- if (robot.rDriveE.getDistance() < (15.5*140*1.1)) {
- c.rDrive = c.lDrive = -0.7;
+ if (robot.rDriveE.getDistance() > -(15.5*140*1.15)) {
+ c.rDrive = c.lDrive = 0.7;
+ //initially -0.7 to drive backwards
+ //0 to 9787 for going backwards
+ //0 to negative for forward
+ //INDY: (15.5*140*1.1)
+ //PURDUE: (15.5*140*1.15) for a drop further
} else {
c.rDrive = c.lDrive = 0;
}