Skip to content

Commit

Permalink
Apply spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
vichik123 committed Jan 17, 2024
1 parent fbe54e1 commit 279ce25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/main/java/frc/robot/swerve/ModuleIOSparkMax.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public ModuleIOSparkMax(

this.encoder = new DutyCycleEncoder(encoderID);


driveMotor.restoreFactoryDefaults();
drivePIDController = driveMotor.getPIDController();
driveEncoder = driveMotor.getEncoder();
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/frc/robot/vision/Vision.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ public static Vision getInstance() {
}

public static void initialize(VisionIO... ios) {
INSTANCE = new Vision(
Arrays.stream(ios).map(
VisionModule::new
).toList().toArray(new VisionModule[0])
);
INSTANCE =
new Vision(
Arrays.stream(ios)
.map(VisionModule::new)
.toList()
.toArray(new VisionModule[0]));
}

public Result[] getResults() {
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/frc/robot/vision/VisionSimIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,8 @@ public void updateInputs(VisionInputs inputs) {
inputs.bestTargetAmbiguity = bestTarget.getPoseAmbiguity();

var cameraToTarget = bestTarget.getBestCameraToTarget();
inputs.cameraToTarget = new Pose3d(
cameraToTarget.getTranslation(),
cameraToTarget.getRotation()
);
inputs.cameraToTarget =
new Pose3d(cameraToTarget.getTranslation(), cameraToTarget.getRotation());
}
}
}
Expand Down

0 comments on commit 279ce25

Please sign in to comment.