added grabber and controller
This commit is contained in:
parent
0bf71c7161
commit
908aca7bd1
@ -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());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user