X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FDrivetrain.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FDrivetrain.java;h=de1efe61d9b239ce71822b240a41af4a3f4cb5b0;hb=56625a790e6475991c814df37bf70e9e640e6714;hp=1267f2c914935d5e18c4787f6a353d2f80feb17f;hpb=f3db6e7b243bd1acfb89790e5bffc3f8d2c768b2;p=3501%2F3501-spark-go diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Drivetrain.java b/src/org/usfirst/frc/team3501/robot/subsystems/Drivetrain.java index 1267f2c..de1efe6 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/Drivetrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/Drivetrain.java @@ -3,23 +3,18 @@ package org.usfirst.frc.team3501.robot.subsystems; import org.usfirst.frc.team3501.robot.RobotMap; import org.usfirst.frc.team3501.robot.commands.DriveWithJoysticks; -import edu.wpi.first.wpilibj.CANJaguar; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.command.Subsystem; public class Drivetrain extends Subsystem { - private RobotDrive robotDrive; + private final RobotDrive robotDrive; public Drivetrain() { - CANJaguar frontLeft = new CANJaguar(RobotMap.FRONT_LEFT_ADDRESS); - CANJaguar frontRight = new CANJaguar(RobotMap.FRONT_RIGHT_ADDRESS); - CANJaguar rearLeft = new CANJaguar(RobotMap.REAR_LEFT_ADDRESS); - CANJaguar rearRight = new CANJaguar(RobotMap.REAR_RIGHT_ADDRESS); robotDrive = new RobotDrive( - frontLeft, rearLeft, - frontRight, rearRight); + RobotMap.frontLeft, RobotMap.rearLeft, + RobotMap.frontRight, RobotMap.rearRight); } public void drive(double forward, double twist) {