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=ca7e3fb07ff898e2f8542eb7e5f58c3a259c0ecb update code --- diff --git a/src/org/usfirst/frc/team3501/robot/Robot.java b/src/org/usfirst/frc/team3501/robot/Robot.java index 6f313c4..3f5e212 100644 --- a/src/org/usfirst/frc/team3501/robot/Robot.java +++ b/src/org/usfirst/frc/team3501/robot/Robot.java @@ -87,6 +87,7 @@ public class Robot extends IterativeRobot { @Override public void autonomousPeriodic() { Scheduler.getInstance().run(); + DriveTrain.getDriveTrain().getDriveController().setConstants( } diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java index 633b12b..231ebf5 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -16,7 +16,6 @@ import edu.wpi.first.wpilibj.command.Subsystem; public class DriveTrain extends Subsystem { public static double driveP, driveI, driveD; public static double turnP, turnI, turnD; - public static double driveStraightGyroP = 0.01; public static final String DRIVE_P_Val = "DriveP";