Skip to content

Commit

Permalink
Code clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
rachitkakkar committed Feb 1, 2025
1 parent f6cb467 commit 68f3987
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ private boolean reverseBeamBreakStatus(){
}

/**
* Centers Coral in end effector
* Centers coral in end effector
*/
private void centerCoral() {
if(forwardBeamBreakStatus()) {
Expand Down Expand Up @@ -256,6 +256,10 @@ public void setState(EndEffectorStates nextState) {
this.nextState = nextState;
}

/**
* Checks status of coral in the end effector
* @return True if end effector is empty
*/
public boolean isEmpty() {
return !forwardBeamBreakStatus() && !reverseBeamBreakStatus();
}
Expand Down Expand Up @@ -288,8 +292,6 @@ public void regurgitate() {
m_endEffectorMotor.set(Constants.EndEffector.REGURGITATE_MOTOR_SPEED);
}



@Override
public void periodic() {
// This method will be called once per scheduler run
Expand Down

0 comments on commit 68f3987

Please sign in to comment.