Skip to content

Commit

Permalink
swerve works on robot
Browse files Browse the repository at this point in the history
  • Loading branch information
GBKP committed Sep 13, 2023
1 parent 482ff67 commit dd6d1bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public RobotContainer() throws IOException {
case REAL:
battery = new BatteryIORio();
drive = new Drive(
new ModuleIOFalcon500(FLTurnMotorId, FLDriveMotorId, false, false, FLTurnEncoderId),
new ModuleIOFalcon500(FRTurnMotorId, FRDriveMotorId, false, false, FRTurnEncoderId),
new ModuleIOFalcon500(BLTurnMotorId, BLDriveMotorId, false, false, BLTurnEncoderId),
new ModuleIOFalcon500(FLTurnMotorId, FLDriveMotorId, false, false, FLTurnEncoderId),
new ModuleIOFalcon500(BRTurnMotorId, BRDriveMotorId, false, false, BRTurnEncoderId),
new GyroIOReal(gyroID, "rio"),
new VisionIOPhoton());
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/subsystems/drive/Drive.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public class Drive extends SubsystemBase {
new SwerveModulePosition(0, new Rotation2d()),
new SwerveModulePosition(0, new Rotation2d())},
new Pose2d());
private final double[] offset = new double[]{-4.414796707534875,
-5.833728936329093,
-5.522330836388308,
-5.927301764390117};
private final double[] offset = new double[]{-2.478912953223196,
-1.2854759002481673,
-2.7642333797699257,
-2.799514937891295};
PhotonPoseEstimator photonPoseEstimator = new PhotonPoseEstimator(
AprilTagFields.k2023ChargedUp.loadAprilTagLayoutField(),
PhotonPoseEstimator.PoseStrategy.MULTI_TAG_PNP,
Expand Down

0 comments on commit dd6d1bc

Please sign in to comment.