Skip to content

Commit

Permalink
Revert to old offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueZeeKing committed Nov 17, 2023
1 parent f0c4b02 commit e072b88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/constants/DriveConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public class DriveConstants {
new Translation2d(-WHEEL_BASE_METERS / 2, -TRACK_WIDTH_METERS / 2));

// Angular offsets of the modules relative to the chassis in radians
public static final double FRONT_LEFT_CHASSIS_ANGULAR_OFFSET = 0;
public static final double FRONT_LEFT_CHASSIS_ANGULAR_OFFSET = -Math.PI / 2;
public static final double FRONT_RIGHT_CHASSIS_ANGULAR_OFFSET = 0;
public static final double BACK_LEFT_CHASSIS_ANGULAR_OFFSET = 0;
public static final double BACK_RIGHT_CHASSIS_ANGULAR_OFFSET = 0;
public static final double BACK_LEFT_CHASSIS_ANGULAR_OFFSET = Math.PI;
public static final double BACK_RIGHT_CHASSIS_ANGULAR_OFFSET = Math.PI / 2;

public static final boolean GYRO_IS_REVERSED = false;
public static final double FREE_SPEED_RPM = 5676;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/MAXSwerveModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void resetEncoders() {
this.drivingEncoder.setPosition(0);
}

public void sendData(String name) {
public void sendData(String name) { // TODO: Make the error output easier to understand
SmartDashboard.putNumber(
name + ": Turn error",
this.getDesiredState().angle.getDegrees() - this.getState().angle.getDegrees());
Expand Down

0 comments on commit e072b88

Please sign in to comment.