Skip to content

Commit

Permalink
Add ResetGyro command
Browse files Browse the repository at this point in the history
  • Loading branch information
harnwalN committed Feb 14, 2024
1 parent 4536a0a commit 03dfb64
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/main/java/frc/robot/commands/ResetGyro.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

package frc.robot.commands;

import edu.wpi.first.wpilibj2.command.Command;
import frc.robot.subsystems.drive.GyroIO;

public class ResetGyro extends Command {
GyroIO gyro;

// CANLauncher m_launcher;

/** Creates a new LaunchNote. */
public ResetGyro(GyroIO gyro) {
this.gyro = gyro;
}

@Override
public void initialize() {
gyro.resetGyro();
}
}

0 comments on commit 03dfb64

Please sign in to comment.