Skip to content

Commit

Permalink
Readability comments for myself
Browse files Browse the repository at this point in the history
  • Loading branch information
cyblazer committed Mar 22, 2024
1 parent d376686 commit cf4b0a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/frc/robot/commands/NoteIntakeCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public void end(boolean interrupted) {
m_intakeSubsystem.stopIntake();
}

// Returns true when the command should end.
@Override
public boolean isFinished() {
return m_intakeSubsystem.getDistanceSensorToggle()
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/subsystems/IntakeSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ private double getDistanceSensor() {
return m_distanceSensor.getRange();
}

/*
* Returns true if we are using the distance sensor
*/
public boolean getDistanceSensorToggle() {
return m_distanceSensorToggle;
}
Expand Down

0 comments on commit cf4b0a4

Please sign in to comment.