Skip to content

Commit

Permalink
offset front left by 180 due to bad zeroing
Browse files Browse the repository at this point in the history
  • Loading branch information
AvidCoder27 committed Sep 11, 2024
1 parent 94f3f61 commit e96d2ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/frc/team5115/subsystems/drive/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ public void setBrakeMode(boolean enabled) {

/** Returns the current turn angle of the module. */
public Rotation2d getAngle() {
return inputs.turnAbsolutePosition;
if (index==0) {
return inputs.turnAbsolutePosition.plus(Rotation2d.fromDegrees(180));
} else {
return inputs.turnAbsolutePosition;
}
}

/** Returns the current drive position of the module in meters. */
Expand Down

0 comments on commit e96d2ea

Please sign in to comment.