From: Eric Sandoval Date: Sat, 4 Feb 2017 21:41:04 +0000 (-0800) Subject: update code X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=273a71b52308d423afad89fff0c59a9bb3e81479 update code --- diff --git a/src/org/usfirst/frc/team3501/robot/Robot.java b/src/org/usfirst/frc/team3501/robot/Robot.java index 85b9521..53135af 100644 --- a/src/org/usfirst/frc/team3501/robot/Robot.java +++ b/src/org/usfirst/frc/team3501/robot/Robot.java @@ -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);