added grabber and controller

This commit is contained in:
Cayden Brackett 2025-07-09 14:13:17 -04:00
parent 0bf71c7161
commit 908aca7bd1

View File

@ -30,15 +30,8 @@ public class DriveTrain extends SubsystemBase {
} }
public Command driveArcade(DoubleSupplier xSpeed, DoubleSupplier zRotation) { public Command driveArcade(DoubleSupplier xSpeed, DoubleSupplier zRotation) {
return run(() -> { return run(() -> {
//makes car like steering possible
drive.arcadeDrive(xSpeed.getAsDouble(), zRotation.getAsDouble()); drive.arcadeDrive(xSpeed.getAsDouble(), zRotation.getAsDouble());
}); });
} }
public Command driveTank(DoubleSupplier leftSpeed, DoubleSupplier rightSpeed) {
return run(() -> {
//makes tank steering possible
drive.tankDrive(leftSpeed.getAsDouble(), rightSpeed.getAsDouble());
});
}
} }