Skip to content

Commit

Permalink
[wpilibj] DutyCycleEncoder.setDistancePerRotation(): fix simulation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Mar 14, 2023
1 parent 53b5fd2 commit c886273
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ public void setDutyCycleRange(double min, double max) {
*/
public void setDistancePerRotation(double distancePerRotation) {
m_distancePerRotation = distancePerRotation;
if (m_simDistancePerRotation != null) {
m_simDistancePerRotation.set(distancePerRotation);
}
}

/**
Expand Down

0 comments on commit c886273

Please sign in to comment.