Skip to content

Commit

Permalink
add pose getter
Browse files Browse the repository at this point in the history
  • Loading branch information
nlaverdure committed Jan 25, 2025
1 parent a5e3ded commit e6ea906
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/frc/lib/AutoSelector.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,10 @@ public void disabledPeriodic() {
initialPosePublisher.set(new Pose2d());
});
}

public Optional<Pose2d> getInitialPose() {
return currentAutoOption.isPresent()
? currentAutoOption.get().getInitialPose()
: Optional.empty();
}
}

0 comments on commit e6ea906

Please sign in to comment.