This commit is contained in:
samuel desharnais 2023-04-11 17:54:19 -04:00
commit 919409e4ff

View File

@ -26,11 +26,11 @@ public class Gyro extends CommandBase {
public void execute() { public void execute() {
if(basePilotable.getpitch()>6) if(basePilotable.getpitch()>6)
{ {
basePilotable.drive(0.4*basePilotable.getpitch()/12, 0); basePilotable.drive(0.3*basePilotable.getpitch()/12, 0);
} }
else if(basePilotable.getpitch()<-6) else if(basePilotable.getpitch()<-6)
{ {
basePilotable.drive(0.4*basePilotable.getpitch()/12, 0); basePilotable.drive(0.3*basePilotable.getpitch()/12, 0);
} }
else else
{ {