diff --git a/src/main/java/frc/robot/commands/DriveCommands.java b/src/main/java/frc/robot/commands/DriveCommands.java index e61814a..3c712a5 100644 --- a/src/main/java/frc/robot/commands/DriveCommands.java +++ b/src/main/java/frc/robot/commands/DriveCommands.java @@ -251,6 +251,16 @@ public static Command tankDriveCommand1(Supplierm_leftMotor, Supplier{m_diffDrive.tankDrive(0, 0);m_diffDrive.resetEncoders();}, + ()->{m_diffDrive.tankDrive(0, m_speed);}, + interrupt -> {m_diffDrive.tankDrive(0, 0);}, + () -> {return m_diffDrive.getAverageTurningDistance() >= (inchPerDegree * m_degrees);} + ); +}