update code
authorEric Sandoval <harpnart@gmail.com>
Sat, 4 Feb 2017 21:41:04 +0000 (13:41 -0800)
committerEric Sandoval <harpnart@gmail.com>
Sun, 19 Feb 2017 18:39:32 +0000 (10:39 -0800)
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);