projects
/
3501
/
roboRIO-code-base
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
import CANTalon from ctre instead of wpilib libraries
[3501/roboRIO-code-base]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
subsystems
/
DriveTrain.java
diff --git
a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java
b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java
index 6175630367e65f38b670a939f2645ae45e8fe7cd..d3d9edf18618f4f61946aefcb2650eb6424af36e 100644
(file)
--- 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;
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 {
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);
}
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
}
@Override