From: EvanYap Date: Sat, 4 Feb 2017 23:38:40 +0000 (-0800) Subject: use driveTrain var instead of DriveTrain static X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=cdb67f487da1b65377170e2335c45266e0bdee04 use driveTrain var instead of DriveTrain static --- diff --git a/src/org/usfirst/frc/team3501/robot/Robot.java b/src/org/usfirst/frc/team3501/robot/Robot.java index 986152d..90d2305 100644 --- a/src/org/usfirst/frc/team3501/robot/Robot.java +++ b/src/org/usfirst/frc/team3501/robot/Robot.java @@ -16,14 +16,14 @@ public class Robot extends IterativeRobot { @Override public void robotInit() { - driveTrain = DriveTrain.getDriveTrain(); + driveTrain = driveTrain; oi = OI.getOI(); shooter = Shooter.getShooter(); intake = Intake.getIntake(); } public static DriveTrain getDriveTrain() { - return DriveTrain.getDriveTrain(); + return driveTrain; } public static Shooter getShooter() { @@ -76,8 +76,7 @@ public class Robot extends IterativeRobot { DriveTrain.getDriveTrain().getDriveController().setConstants(driveP, driveI, driveD); - DriveTrain.getDriveTrain().getGyroController().setConstants(gyroP, gyroI, - gyroD); + driveTrain.getGyroController().setConstants(gyroP, gyroI, gyroD); // new DriveDistance(SETPOINT, SPEED).start();