From 286ea352ffc3e0c46e6d4efb031b9e406915197c Mon Sep 17 00:00:00 2001 From: EdwardFaucher Date: Wed, 8 Mar 2023 18:21:27 -0500 Subject: [PATCH] r --- src/main/java/frc/robot/commands/Gyro.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/commands/Gyro.java b/src/main/java/frc/robot/commands/Gyro.java index d38b4a2..4d60319 100644 --- a/src/main/java/frc/robot/commands/Gyro.java +++ b/src/main/java/frc/robot/commands/Gyro.java @@ -25,11 +25,11 @@ public class Gyro extends CommandBase { public void execute() { if(basePilotable.getpitch()>4) { - basePilotable.drive(0.3, 0); + basePilotable.drive(0.3*basePilotable.getpitch()/12, 0); } else if(basePilotable.getpitch()<-4) { - basePilotable.drive(-0.3, 0); + basePilotable.drive(0.3*basePilotable.getpitch()/12, 0); } else {