Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Commit 2304b9c

Browse files
committed
🎨 Lints
1 parent bbb1415 commit 2304b9c

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

src/main/java/frc/robot/RobotContainer.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@ public RobotContainer() {
159159
private void configureBindings() {
160160
m_operatorController
161161
.rightBumper("Intake")
162-
.whileTrue(intake.intakeIn().alongWith(spindex.goToShooter()).alongWith(turret.setPosition(TurretConstants.kIntakePreset)));
162+
.whileTrue(
163+
intake
164+
.intakeIn()
165+
.alongWith(spindex.goToShooter())
166+
.alongWith(turret.setPosition(TurretConstants.kIntakePreset)));
163167
m_operatorController
164168
.rightTrigger("Shooter")
165169
.onTrue(

src/main/java/frc/robot/subsystems/spindex/Spindex.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ public Command goToShooter() {
9696

9797
public Command feedNoteToShooter() {
9898
return setVoltage(SpindexConstants.spindexMotorVoltage, SpindexConstants.shooterFeederVoltage)
99-
// .until(() -> !beamBreakIOAutoLogged.beamBroken)
100-
.finallyDo(
101-
() -> {
102-
spindexIO.off();
103-
shooterFeederIO.off();
104-
});
99+
// .until(() -> !beamBreakIOAutoLogged.beamBroken)
100+
.finallyDo(
101+
() -> {
102+
spindexIO.off();
103+
shooterFeederIO.off();
104+
});
105105
}
106106

107107
public Command goToAmpevator() {

src/main/java/frc/robot/subsystems/turret/Turret.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ public Command setPositionFieldRelative(Rotation2d position, CommandSwerveDrivet
9191
* @return Command to set the turret motor to the desired position / by the gear ratio
9292
*/
9393
public Command setPosition(Rotation2d position) {
94-
return this.runOnce(
95-
() -> turretIO.setPosition(position.getRotations()));
94+
return this.runOnce(() -> turretIO.setPosition(position.getRotations()));
9695
}
9796

9897
/**
@@ -154,7 +153,6 @@ public Command shakeHead() {
154153
* the reverse limit if it is past the reverse limit
155154
*/
156155
public Command reset() {
157-
return this.runOnce(
158-
() -> turretIO.setPosition(0));
156+
return this.runOnce(() -> turretIO.setPosition(0));
159157
}
160158
}

src/main/java/frc/robot/subsystems/turret/TurretConstants.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
package frc.robot.subsystems.turret;
99

1010
import com.ctre.phoenix6.configs.*;
11-
import com.ctre.phoenix6.signals.FeedbackSensorSourceValue;
1211
import com.ctre.phoenix6.signals.InvertedValue;
1312
import com.ctre.phoenix6.signals.NeutralModeValue;
1413
import edu.wpi.first.math.geometry.Rotation2d;

0 commit comments

Comments
 (0)