mirror of
https://github.com/Team4388/2023WayOfTheRobot.git
synced 2026-06-09 00:37:59 -06:00
interrupt button
This commit is contained in:
@@ -38,13 +38,10 @@ public class RobotMap {
|
|||||||
public SwerveModule leftBack;
|
public SwerveModule leftBack;
|
||||||
public SwerveModule rightBack;
|
public SwerveModule rightBack;
|
||||||
|
|
||||||
public WPI_Pigeon2 gyro;
|
|
||||||
|
|
||||||
public RobotMap() {
|
public RobotMap() {
|
||||||
configureLEDMotorControllers();
|
configureLEDMotorControllers();
|
||||||
configureDriveMotors();
|
configureDriveMotors();
|
||||||
|
|
||||||
gyro = new WPI_Pigeon2(GyroConstants.ID);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LED Subsystem */
|
/* LED Subsystem */
|
||||||
|
|||||||
@@ -33,10 +33,10 @@ public class SwerveDrive extends SubsystemBase {
|
|||||||
|
|
||||||
private SwerveDriveKinematics kinematics = new SwerveDriveKinematics(leftFrontLocation, rightFrontLocation, leftBackLocation, rightBackLocation);
|
private SwerveDriveKinematics kinematics = new SwerveDriveKinematics(leftFrontLocation, rightFrontLocation, leftBackLocation, rightBackLocation);
|
||||||
|
|
||||||
private WPI_Pigeon2 gyro;
|
private RobotGyro gyro;
|
||||||
|
|
||||||
/** Creates a new SwerveDrive. */
|
/** 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.leftFront = leftFront;
|
||||||
this.rightFront = rightFront;
|
this.rightFront = rightFront;
|
||||||
this.leftBack = leftBack;
|
this.leftBack = leftBack;
|
||||||
|
|||||||
Reference in New Issue
Block a user