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

Commit

Permalink
🎨 Lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Nov 8, 2024
1 parent bbb1415 commit 2304b9c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
6 changes: 5 additions & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ public RobotContainer() {
private void configureBindings() {
m_operatorController
.rightBumper("Intake")
.whileTrue(intake.intakeIn().alongWith(spindex.goToShooter()).alongWith(turret.setPosition(TurretConstants.kIntakePreset)));
.whileTrue(
intake
.intakeIn()
.alongWith(spindex.goToShooter())
.alongWith(turret.setPosition(TurretConstants.kIntakePreset)));
m_operatorController
.rightTrigger("Shooter")
.onTrue(
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/frc/robot/subsystems/spindex/Spindex.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ public Command goToShooter() {

public Command feedNoteToShooter() {
return setVoltage(SpindexConstants.spindexMotorVoltage, SpindexConstants.shooterFeederVoltage)
// .until(() -> !beamBreakIOAutoLogged.beamBroken)
.finallyDo(
() -> {
spindexIO.off();
shooterFeederIO.off();
});
// .until(() -> !beamBreakIOAutoLogged.beamBroken)
.finallyDo(
() -> {
spindexIO.off();
shooterFeederIO.off();
});
}

public Command goToAmpevator() {
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/frc/robot/subsystems/turret/Turret.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ public Command setPositionFieldRelative(Rotation2d position, CommandSwerveDrivet
* @return Command to set the turret motor to the desired position / by the gear ratio
*/
public Command setPosition(Rotation2d position) {
return this.runOnce(
() -> turretIO.setPosition(position.getRotations()));
return this.runOnce(() -> turretIO.setPosition(position.getRotations()));
}

/**
Expand Down Expand Up @@ -154,7 +153,6 @@ public Command shakeHead() {
* the reverse limit if it is past the reverse limit
*/
public Command reset() {
return this.runOnce(
() -> turretIO.setPosition(0));
return this.runOnce(() -> turretIO.setPosition(0));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
package frc.robot.subsystems.turret;

import com.ctre.phoenix6.configs.*;
import com.ctre.phoenix6.signals.FeedbackSensorSourceValue;
import com.ctre.phoenix6.signals.InvertedValue;
import com.ctre.phoenix6.signals.NeutralModeValue;
import edu.wpi.first.math.geometry.Rotation2d;
Expand Down

0 comments on commit 2304b9c

Please sign in to comment.