interrupt button

This commit is contained in:
Ryan
2023-01-14 14:36:38 -07:00
parent 3066038f96
commit becd795383
2 changed files with 2 additions and 5 deletions
@@ -38,13 +38,10 @@ public class RobotMap {
public SwerveModule leftBack;
public SwerveModule rightBack;
public WPI_Pigeon2 gyro;
public RobotMap() {
configureLEDMotorControllers();
configureDriveMotors();
gyro = new WPI_Pigeon2(GyroConstants.ID);
}
/* LED Subsystem */
@@ -33,10 +33,10 @@ public class SwerveDrive extends SubsystemBase {
private SwerveDriveKinematics kinematics = new SwerveDriveKinematics(leftFrontLocation, rightFrontLocation, leftBackLocation, rightBackLocation);
private WPI_Pigeon2 gyro;
private RobotGyro gyro;
/** Creates a new SwerveDrive. */
public SwerveDrive(SwerveModule leftFront, SwerveModule rightFront, SwerveModule leftBack, SwerveModule rightBack, WPI_Pigeon2 gyro) {
public SwerveDrive(SwerveModule leftFront, SwerveModule rightFront, SwerveModule leftBack, SwerveModule rightBack, RobotGyro gyro) {
this.leftFront = leftFront;
this.rightFront = rightFront;
this.leftBack = leftBack;