summaryrefslogtreecommitdiff
path: root/src/org/usfirst/frc/team4272/robot2016/Autonomous.java
diff options
context:
space:
mode:
authorFRC_4272 <FRC_4272@USER-PC.lan>2017-03-23 02:12:16 -0400
committerFRC_4272 <FRC_4272@USER-PC.lan>2017-03-23 02:12:16 -0400
commiteeb851b8b5af772401fe4400ef0d065b872397bd (patch)
tree9a64f6834d137851537faab9abf1ae24f2cfcfcf /src/org/usfirst/frc/team4272/robot2016/Autonomous.java
parented3db134b11bc37d9a4bad77b1e92aea71daf564 (diff)
Other changes sitting on delldell-2
Diffstat (limited to 'src/org/usfirst/frc/team4272/robot2016/Autonomous.java')
-rw-r--r--src/org/usfirst/frc/team4272/robot2016/Autonomous.java26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/org/usfirst/frc/team4272/robot2016/Autonomous.java b/src/org/usfirst/frc/team4272/robot2016/Autonomous.java
index 756c33d..5cba22f 100644
--- a/src/org/usfirst/frc/team4272/robot2016/Autonomous.java
+++ b/src/org/usfirst/frc/team4272/robot2016/Autonomous.java
@@ -14,18 +14,24 @@ public class Autonomous {
}
public Control run(Control c) {
- if (robot.armL.get()) {
- c.arm = -0.5;
- } else {
- c.arm = 0;
- robot.armE.reset();
- }
- if (time.get() < 4) {
- c.lDrive1 = c.rDrive1 = -0.4;
- } else {
- c.lDrive1 = c.rDrive1 = 0;
+// if (time.get() < 5) {
+// c.lDrive1 = c.lDrive2 = 0.2;
+// c.rDrive1 =c.rDrive2 = -0.2;
+// } else {
+// c.lDrive1 = c.rDrive1 = 0;
+// c.lDrive2 = c.rDrive2 = 0;
+// }
+ if(Math.abs(robot.driveE.getRaw()) > 1){
+ c.lDrive1 = c.lDrive2 = 0;
+ c.rDrive1 =c.rDrive2 = 0;
+ }
+ else
+ {
+ c.lDrive1 = c.lDrive2 = 0.2;
+ c.rDrive1 =c.rDrive2 = 0.2;
}
+
SmartDashboard.putNumber("autoTime", time.get());
return c;