Skip to content

Commit 7ea3a7b

Browse files
committed
Removed blocking command
1 parent 0009ab4 commit 7ea3a7b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/main/java/frc/robot/subsystems/intake/IntakeSubsystem.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ public IntakeSubsystem() {
3737
extensionMotor.setPosition(0);
3838
extensionTarget = Rotations.of(0);
3939
extensionControl = new PositionTorqueCurrentFOC(0);
40-
41-
homeIntake();
4240
}
4341

4442
@Override
@@ -83,14 +81,6 @@ public Command stowCommand() {
8381
.withName("Stow Intake");
8482
}
8583

86-
private void homeIntake() {
87-
while (extensionMotor.getStatorCurrent().getValueAsDouble()
88-
> IntakeConstants.SAFE_STATOR_LIMIT) {
89-
extensionMotor.set(IntakeConstants.SAFE_HOMING_EFFORT);
90-
}
91-
extensionMotor.setPosition(0);
92-
}
93-
9484
public Command homeIntakeCommand() {
9585
return runEnd(
9686
() -> extensionMotor.set(IntakeConstants.SAFE_HOMING_EFFORT),

0 commit comments

Comments
 (0)