From 0578a8731485a4b4b1a6bf8ef88d9bc2219c3c3a Mon Sep 17 00:00:00 2001 From: github-actions <> Date: Thu, 4 Jan 2024 21:01:32 +0000 Subject: [PATCH] Google Java Format --- src/main/java/frc/robot/RobotContainer.java | 46 +++++++++++---------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index e822cdc..d786c88 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -7,7 +7,6 @@ import com.ctre.phoenix6.mechanisms.swerve.SwerveModule.DriveRequestType; import com.ctre.phoenix6.mechanisms.swerve.SwerveRequest; -import edu.wpi.first.math.geometry.Rotation2d; import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.InstantCommand; import frc.robot.subsystems.drive.DriveConstants; @@ -30,30 +29,35 @@ private class Controller { .withRotationalDeadband(DriveConstants.kMaxAngularRate * 0.1) .withDriveRequestType(DriveRequestType.OpenLoopVoltage); - /* Path follower */ - private Command runAuto = drivetrain.getAutoPath("Tests"); + /* Path follower */ + private Command runAuto = drivetrain.getAutoPath("Tests"); private final Telemetry logger = new Telemetry(DriveConstants.kMaxSpeed); - private void configureBindings() { - ledSubsystem.setDefaultCommand(new InstantCommand(() -> ledSubsystem.periodic(), ledSubsystem)); - drivetrain.registerTelemetry(logger::telemeterize); + private void configureBindings() { + ledSubsystem.setDefaultCommand(new InstantCommand(() -> ledSubsystem.periodic(), ledSubsystem)); + drivetrain.registerTelemetry(logger::telemeterize); - drivetrain.setDefaultCommand( - drivetrain - .applyRequest( - () -> drive - .withVelocityX(-Controller.driver.getLeftY() * DriveConstants.kMaxSpeed) // Drive forward with - // negative Y (forward) - .withVelocityY( - -Controller.driver.getLeftX() * DriveConstants.kMaxSpeed) // Drive left with negative X (left) - .withRotationalRate( - -Controller.driver.getRightX() - * DriveConstants.kMaxAngularRate) // Drive counterclockwise with negative X - // (left) - ) - .ignoringDisable(true)); - } + drivetrain.setDefaultCommand( + drivetrain + .applyRequest( + () -> + drive + .withVelocityX( + -Controller.driver.getLeftY() + * DriveConstants.kMaxSpeed) // Drive forward with + // negative Y (forward) + .withVelocityY( + -Controller.driver.getLeftX() + * DriveConstants.kMaxSpeed) // Drive left with negative X (left) + .withRotationalRate( + -Controller.driver.getRightX() + * DriveConstants + .kMaxAngularRate) // Drive counterclockwise with negative X + // (left) + ) + .ignoringDisable(true)); + } public RobotContainer() { configureBindings();