Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ private void configureDriverController() {
.onTrue(
new InstantCommand(
() -> swerveDrive.resetEstimatedPose(visionSubsystem.getLastSeenPose())));

driverController.leftTrigger()
.whileTrue(
new InstantCommand(() -> swerveDrive.resetEstimatedPose(visionSubsystem.getLastSeenPose())).andThen(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if the camera doesn't see an april tag? Does it still work? Has it been tested? Are we not manually resetting it? Also, you currently have two Auto align (left reef) bound to the same trigger. (Scroll up in the method. It's under the set default command)

new AutoAlignReef(swerveDrive, visionSubsystem, true, this::alignCallback)
));
}

/** Configures the operator controller buttons and axes to control the robot */
Expand Down
Loading