From: EvanYap Date: Sat, 4 Feb 2017 21:23:29 +0000 (-0800) Subject: move pidcontroller into drivetrain X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=0c15b54929c6b4f5d175de24fbd577c2c94b4d32 move pidcontroller into drivetrain --- diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java index 566200e..b113acc 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -59,12 +59,13 @@ public class DriveTrain extends Subsystem { private static double CLIMBER_SPEED;; public boolean shouldBeClimbing = false; - private DriveTrain() { + private PIDController driveController; - driveController = new PIDController(driveP, driveI, driveD); - gyroController = new PIDController(turnP, turnI, turnD); + private DriveTrain() { // PID TUNING + driveController = new PIDController(driveP, driveI, driveD); + gyroController = new PIDController(turnP, turnI, turnD // MOTOR CONTROLLERS frontLeft = new CANTalon(Constants.DriveTrain.FRONT_LEFT);