From 04f2cb523a708eec75184e1531d4886e6d66f9de Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Sun, 8 Jan 2017 12:54:39 -0800 Subject: [PATCH] import CANTalon from ctre instead of wpilib libraries --- .../frc/team3501/robot/subsystems/DriveTrain.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 -- 2.30.2