001/************************* PROJECT RON *************************/
002/* Copyright (c) 2026 StuyPulse Robotics. All rights reserved. */
003/* Use of this source code is governed by an MIT-style license */
004/* that can be found in the repository LICENSE file.           */
005/***************************************************************/
006package com.stuypulse.robot.commands.swerve;
007
008import com.stuypulse.robot.subsystems.swerve.CommandSwerveDrivetrain;
009import edu.wpi.first.math.geometry.Pose2d;
010import edu.wpi.first.wpilibj2.command.InstantCommand;
011
012public class SwerveResetPose extends InstantCommand {
013
014    private final CommandSwerveDrivetrain swerve;
015
016    private final Pose2d newPose;
017
018    public SwerveResetPose(Pose2d newPose) {
019        swerve = CommandSwerveDrivetrain.getInstance();
020        this.newPose = newPose;
021    }
022
023    @Override
024    public void execute() {
025        swerve.resetPose(newPose);
026    }
027}