[wpilibj] Tachometer.getFrequency(): Fix bug (#4281)

Now it returns 1/period (like Tachometer.cpp); before it just returned period.
This commit is contained in:
truher
2022-06-01 10:13:19 -07:00
committed by GitHub
parent 345cff08c0
commit 8b6df88783

View File

@@ -77,7 +77,7 @@ public class Tachometer implements Sendable, AutoCloseable {
if (period == 0) {
return 0;
}
return period;
return 1 / period;
}
/**