Skip to content

Commit

Permalink
Apply spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
vichik123 committed Jan 16, 2024
1 parent e43c8f4 commit 07c8d49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/main/java/frc/robot/swerve/ModuleIOSparkMax.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ public class ModuleIOSparkMax implements ModuleIO {

private final SimpleMotorFeedforward feedforward =
new SimpleMotorFeedforward(
SwerveConstantsNeo.DRIVE_kS, SwerveConstantsNeo.DRIVE_kV, SwerveConstantsNeo.DRIVE_kA);
SwerveConstantsNeo.DRIVE_kS,
SwerveConstantsNeo.DRIVE_kV,
SwerveConstantsNeo.DRIVE_kA);

public ModuleIOSparkMax(
int driveMotorID,
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/frc/robot/swerve/commands/XboxDrive.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ public XboxDrive(SwerveDrive swerveDrive, XboxController xboxController) {
@Override
public void execute() {
swerveDrive.drive(
MathUtil.applyDeadband(-xboxController.getLeftY(), SwerveConstantsNeo.XBOX_DEADBAND),
MathUtil.applyDeadband(-xboxController.getLeftX(), SwerveConstantsNeo.XBOX_DEADBAND),
MathUtil.applyDeadband(
-xboxController.getLeftY(), SwerveConstantsNeo.XBOX_DEADBAND),
MathUtil.applyDeadband(
-xboxController.getLeftX(), SwerveConstantsNeo.XBOX_DEADBAND),
MathUtil.applyDeadband(
-xboxController.getRightX() * SwerveConstantsNeo.STEERING_MULTIPLIER,
SwerveConstantsNeo.XBOX_DEADBAND),
Expand Down

0 comments on commit 07c8d49

Please sign in to comment.