This commit is contained in:
Antoine PerreaultE
2024-01-23 18:46:30 -05:00
parent 6c9a52775b
commit b0a3bbd4d8
3 changed files with 5 additions and 428 deletions

View File

@@ -38,10 +38,10 @@ public class Drive extends SubsystemBase {
final CanAndCoderSwerve avantgaucheangle = new CanAndCoderSwerve(Constants.avantgaucheAngle);
final CanAndCoderSwerve arrieregaucheangle = new CanAndCoderSwerve(Constants.arrieregaucheAngle);
final CanAndCoderSwerve arrieredroitangle = new CanAndCoderSwerve(Constants.arrieredroitAngle); */
public void drive(double x, double y, double zRotation){
swerveDrive.drive(new Translation2d(x*2, y*2), zRotation, true, false);
}
public void drive(double x, double y, double zRotation){
swerveDrive.drive(new Translation2d(x*5, y*5), zRotation, true, false);
}
/** Creates a new Drive. */