import CANTalon from ctre instead of wpilib libraries
authorCindy Zhang <cindyzyx9@gmail.com>
Sun, 8 Jan 2017 20:54:39 +0000 (12:54 -0800)
committerCindy Zhang <cindyzyx9@gmail.com>
Sun, 8 Jan 2017 20:54:39 +0000 (12:54 -0800)
src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java

index 6175630367e65f38b670a939f2645ae45e8fe7cd..d3d9edf18618f4f61946aefcb2650eb6424af36e 100644 (file)
@@ -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