From 273a71b52308d423afad89fff0c59a9bb3e81479 Mon Sep 17 00:00:00 2001 From: Eric Sandoval Date: Sat, 4 Feb 2017 13:41:04 -0800 Subject: [PATCH] update code --- src/org/usfirst/frc/team3501/robot/Robot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2