mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilibj] Tachometer.getFrequency(): Fix bug (#4281)
Now it returns 1/period (like Tachometer.cpp); before it just returned period.
This commit is contained in:
@@ -77,7 +77,7 @@ public class Tachometer implements Sendable, AutoCloseable {
|
||||
if (period == 0) {
|
||||
return 0;
|
||||
}
|
||||
return period;
|
||||
return 1 / period;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user