Skip to content

Commit

Permalink
refactor: consistent method naming for beam break checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rutmanz committed Feb 5, 2024
1 parent 9481831 commit cde66a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void initialize() {

@Override
public boolean isFinished() {
return indexer.isNotePresent();
return indexer.isNoteStaged();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void initialize() {

@Override
public boolean isFinished() {
return tramp.isBeamBreakBlocked();
return tramp.isNoteStaged();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void setIntakePercent(double percent) {
io.setIntakeVoltage(percent * 12.0);
}

public boolean isNotePresent() {
public boolean isNoteStaged() {
return inputs.noteInIntake;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void setPercent(double percentage) {
io.setVoltage(12.0 * percentage);
}

public boolean isBeamBreakBlocked() {
public boolean isNoteStaged() {
return inputs.breamBreakTripped;
}

Expand Down

0 comments on commit cde66a2

Please sign in to comment.