-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |