From 0c15b54929c6b4f5d175de24fbd577c2c94b4d32 Mon Sep 17 00:00:00 2001 From: EvanYap Date: Sat, 4 Feb 2017 13:23:29 -0800 Subject: [PATCH] move pidcontroller into drivetrain --- .../usfirst/frc/team3501/robot/subsystems/DriveTrain.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); -- 2.30.2