|
11 | 11 | import org.usfirst.frc.team199.Robot2018.RobotMap; |
12 | 12 | import org.usfirst.frc.team199.Robot2018.commands.TeleopDrive; |
13 | 13 |
|
14 | | -import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX; |
15 | 14 | import com.kauailabs.navx.frc.AHRS; |
16 | 15 |
|
17 | 16 | import edu.wpi.first.wpilibj.AnalogGyro; |
|
25 | 24 | import edu.wpi.first.wpilibj.command.Subsystem; |
26 | 25 | import edu.wpi.first.wpilibj.drive.DifferentialDrive; |
27 | 26 |
|
28 | | -/** |
29 | | - * An example subsystem. You can replace me with your own Subsystem. |
30 | | - */ |
31 | 27 | public class Drivetrain extends Subsystem implements PIDOutput, PIDSource { |
32 | 28 | // Put methods for controlling this subsystem |
33 | 29 | // here. Call these from Commands. |
34 | 30 |
|
35 | 31 | private final Encoder leftEnc = RobotMap.leftEnc; |
36 | 32 | private final Encoder rightEnc = RobotMap.rightEnc; |
37 | | - private final WPI_TalonSRX dtLeftDrive = RobotMap.dtLeftDrive; |
38 | | - private final WPI_TalonSRX dtRightDrive = RobotMap.dtRightDrive; |
39 | 33 | private final SpeedControllerGroup dtLeft = RobotMap.dtLeft; |
40 | 34 | private final SpeedControllerGroup dtRight = RobotMap.dtRight; |
41 | 35 | private final DifferentialDrive robotDrive = RobotMap.robotDrive; |
42 | 36 | private final PIDController turnController = RobotMap.turnController; |
43 | 37 | private final PIDController moveController = RobotMap.moveController; |
44 | | - // private final PIDController moveLeftController = RobotMap.moveLeftController; |
45 | | - // private final PIDController moveRightController = |
46 | | - // RobotMap.moveRightController; |
47 | 38 |
|
48 | 39 | private final AHRS ahrs = RobotMap.ahrs; |
49 | 40 | private final AnalogGyro dtGyro = RobotMap.dtGyro; |
|
0 commit comments