From: Cindy Zhang Date: Sun, 8 Jan 2017 20:54:39 +0000 (-0800) Subject: import CANTalon from ctre instead of wpilib libraries X-Git-Url: http://challenge-bot.com/repos/?p=3501%2FroboRIO-code-base;a=commitdiff_plain;h=04f2cb523a708eec75184e1531d4886e6d66f9de import CANTalon from ctre instead of wpilib libraries --- diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java index 6175630..d3d9edf 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -1,7 +1,9 @@ package org.usfirst.frc.team3501.robot.subsystems; import org.usfirst.frc.team3501.robot.Constants; -import edu.wpi.first.wpilibj.CANTalon; + +import com.ctre.CANTalon; + import edu.wpi.first.wpilibj.command.Subsystem; public class DriveTrain extends Subsystem { @@ -14,11 +16,11 @@ public class DriveTrain extends Subsystem { rearLeft = new CANTalon(Constants.DriveTrain.REAR_LEFT); rearRight = new CANTalon(Constants.DriveTrain.REAR_RIGHT); } - - public static DriveTrain getDriveTrain(){ - if(driveTrain == null) - driveTrain = new DriveTrain(); - return driveTrain; + + public static DriveTrain getDriveTrain() { + if (driveTrain == null) + driveTrain = new DriveTrain(); + return driveTrain; } @Override