Skip to content

Commit

Permalink
[wpilibj] Fix EncoderSim.setDistancePerPulse parameter name and comme…
Browse files Browse the repository at this point in the history
…nt (NFC) (wpilibsuite#6481)
  • Loading branch information
chauser authored and narmstro2020 committed Apr 10, 2024
1 parent 02103e7 commit 043442d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ public double getDistancePerPulse() {
/**
* Set the distance per pulse value.
*
* @param samplesToAverage the new value
* @param distancePerPulse the new distancePerPulse
*/
public void setDistancePerPulse(double samplesToAverage) {
EncoderDataJNI.setDistancePerPulse(m_index, samplesToAverage);
public void setDistancePerPulse(double distancePerPulse) {
EncoderDataJNI.setDistancePerPulse(m_index, distancePerPulse);
}

/**
Expand Down

0 comments on commit 043442d

Please sign in to comment.