From: Arunima DIvya Date: Wed, 25 Jan 2017 05:19:46 +0000 (-0800) Subject: create shifter instance X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=4a75c629bc68ae38be99f13040018899c75ee23f create shifter instance --- diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java index 1ba8c8c..f25d548 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -6,6 +6,7 @@ import org.usfirst.frc.team3501.robot.commands.driving.JoystickDrive; import com.ctre.CANTalon; import edu.wpi.first.wpilibj.ADXRS450_Gyro; +import edu.wpi.first.wpilibj.DoubleSolenoid; import edu.wpi.first.wpilibj.Encoder; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.command.Subsystem; @@ -25,6 +26,7 @@ public class DriveTrain extends Subsystem { private final CANTalon frontLeft, frontRight, rearLeft, rearRight; private final RobotDrive robotDrive; private final Encoder leftEncoder, rightEncoder; + private final DoubleSolenoid shifter; private ADXRS450_Gyro imu; @@ -48,6 +50,8 @@ public class DriveTrain extends Subsystem { robotDrive = new RobotDrive(frontLeft, rearLeft, frontRight, rearRight); this.imu = new ADXRS450_Gyro(Constants.DriveTrain.GYRO_PORT); + shifter = DoubleSolenoid(10, Constants.DriveTrain.SHIFTER_FORWARD, + Constants.DriveTrain.SHIFTER_REVERSE); } public static DriveTrain getDriveTrain() {