update code
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / Robot.java
index db5e469ff3be6a031e0efbfc571c6a9a13727cfd..da4d82076860145cf7d0648703ad9bd0a51ed2f5 100644 (file)
@@ -1,12 +1,12 @@
 package org.usfirst.frc.team3501.robot;
 
-import org.usfirst.frc.team3501.robot.commands.driving.DriveDistance;
 import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
 import org.usfirst.frc.team3501.robot.subsystems.Intake;
 import org.usfirst.frc.team3501.robot.subsystems.Shooter;
 
 import edu.wpi.first.wpilibj.IterativeRobot;
 import edu.wpi.first.wpilibj.command.Scheduler;
+import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
 
 public class Robot extends IterativeRobot {
   private static DriveTrain driveTrain;
@@ -42,16 +42,14 @@ public class Robot extends IterativeRobot {
   // both set to high gear
   @Override
   public void autonomousInit() {
-    Scheduler.getInstance().add(new DriveDistance(25, 10));
-    if (driveTrain.getLeftGearPistonValue() != driveTrain
-        .getRightGearPistonValue()) {
-      driveTrain.setHighGear();
-    }
+    driveTrain.setHighGear();
+    SmartDashboard.putNumber("I", -1);
   }
 
   @Override
   public void autonomousPeriodic() {
     Scheduler.getInstance().run();
+    DriveTrain.getDriveTrain().getDriveController().setConstants(
 
   }
 
@@ -63,6 +61,5 @@ public class Robot extends IterativeRobot {
   @Override
   public void teleopPeriodic() {
     Scheduler.getInstance().run();
-
   }
 }