Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
feat(odometry): Add boolean for indicating flip state.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenheroux committed Mar 19, 2024
1 parent e66d510 commit 5562878
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/odometry/Odometry.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ public void periodic() {

@Override
public void addToShuffleboard(ShuffleboardTab tab) {
ShuffleboardLayout shouldFlip = Telemetry.addColumn(tab, "Should Flip?");

shouldFlip.addBoolean("Should Flip?", () -> AllianceFlipHelper.shouldFlip());

ShuffleboardLayout position = Telemetry.addColumn(tab, "Position");

position.addDouble("X (m)", () -> getPosition().getX());
Expand Down

0 comments on commit 5562878

Please sign in to comment.