Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/EmptyFeeder.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void execute() {
// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {

this.feeder.stopFeeder();
}

}
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/subsystems/FeederSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ public void emptyFeeder(){
feederTalon.set(ControlMode.Position, 6*FEEDERSUBSYSTEM_INCREMENT_TICKS.get());
}

public void stopFeeder(){
feederTalon.set(0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make 0 into a CONSTANT?

}

public void periodic() {
// Set the default command for a subsystem here.
// setDefaultCommand(new MySpecialCommand());
Expand Down