@@ -23,6 +23,7 @@ import frc.robot.commands.intake.ToggleIntakeCommand
2323import frc.robot.commands.launcher.*
2424import frc.robot.commands.pivot.*
2525import frc.robot.commands.swerve.*
26+ import frc.robot.commands.vision.UpdateOdometryCommand
2627import frc.robot.subsystems.ClimbSubsystem
2728import frc.robot.subsystems.IntakeSubsystem
2829import frc.robot.subsystems.PivotSubsystem
@@ -162,15 +163,11 @@ object RobotContainer {
162163 controller.rightBumper().toggleOnTrue(manualClimb)
163164 controller.rightStick().onTrue(InstantCommand (SwerveSubsystem ::toggleFieldOriented))
164165 controller.button(Constants .OperatorConstants .BACK_BUTTON )
165- .onTrue(Commands .runOnce(
166- {
167- SwerveSubsystem .resetOdometry(GeometryUtil .flipFieldPose(SwerveSubsystem .getPose()))
168- }
169- )) // TODO: Implement Toggle
170- controller.button(Constants .OperatorConstants .START_BUTTON )
171- .onTrue(Commands .runOnce({
172- SwerveSubsystem .resetOdometry(Constants .FIELD_LOCATIONS .SUBWOOFER_POSE )
173- })) // TODO: Implement Intake Command Override
166+ .onTrue(UpdateOdometryCommand ()) // TODO: Implement Toggle
167+ // controller.button(Constants.OperatorConstants.START_BUTTON)
168+ // .onTrue(Commands.runOnce({
169+ // SwerveSubsystem.resetOdometry(Constants.FIELD_LOCATIONS.SUBWOOFER_POSE)
170+ // })) // TODO: Implement Intake Command Override
174171
175172
176173 LauncherSubsystem .noteTrigger.and (controller.a()).onTrue(launchCommand) // TODO: Implement Priming
0 commit comments