From 49d25780b8a5bc06295f777c31333a697098984e Mon Sep 17 00:00:00 2001 From: yamamara Date: Thu, 15 Aug 2024 12:43:14 -0400 Subject: [PATCH] Added Reset Gyro Yaw button to Shuffleboard --- src/main/kotlin/com/team4099/robot2023/RobotContainer.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/com/team4099/robot2023/RobotContainer.kt b/src/main/kotlin/com/team4099/robot2023/RobotContainer.kt index 5f5936e..9c67623 100644 --- a/src/main/kotlin/com/team4099/robot2023/RobotContainer.kt +++ b/src/main/kotlin/com/team4099/robot2023/RobotContainer.kt @@ -168,6 +168,12 @@ object RobotContainer { .withSize(1, 1) .withPosition(0, 0) .withWidget(BuiltInWidgets.kCommand) + + Shuffleboard.getTab("Commands") + .add("Reset Gyro Yaw", ResetGyroYawCommand(drivetrain)) + .withSize(1, 1) + .withPosition(0, 1) + .withWidget(BuiltInWidgets.kCommand) } fun mapDefaultCommands() {