Skip to content

Commit

Permalink
added done method
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-Lee11 committed Mar 23, 2022
1 parent 06239dc commit b70ff8f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,8 @@ public void setPower(double power) {
public double getPower() {
return motor.getPower();
}

public boolean profileDone(){
return profileTimer.seconds() > profile.duration();
}
}

0 comments on commit b70ff8f

Please sign in to comment.