update code
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / Robot.java
index 85b9521b089841a49240b94ca8d1a43ff961a89b..53135af6812c21a84ed8e8609c3c28f8b063ce26 100644 (file)
@@ -79,12 +79,12 @@ public class Robot extends IterativeRobot {
     driveTrain.getDriveController().setConstants(driveP, driveI, driveD);
 
     driveTrain.getGyroController().setConstants(gyroP, gyroI, gyroD);
-
   }
 
   @Override
   public void autonomousPeriodic() {
     Scheduler.getInstance().run();
+    DriveTrain.getDriveTrain().getDriveController().setConstants(
 
     double driveP = SmartDashboard.getNumber(Constants.DriveTrain.DRIVE_D_Val,
         Constants.DriveTrain.PID_ERROR);