summaryrefslogtreecommitdiff
path: root/src/org/usfirst/frc/team4272/robot2015/Autonomous.java
diff options
context:
space:
mode:
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;
}