Closed spacey-sooty closed 1 week ago
Why is this necessary? new AnalogEncoder(port, 2 * Math.PI, 0)
already accomplishes the same thing.
Not all analog and duty cycle encoders are angular. Linear versions of both exist. This api makes no sense because of that.
That would make sense, the issue should be closed then no?
Resolves https://github.com/wpilibsuite/allwpilib/issues/4063
The API differs between Java and C++ as C++ having units used everywhere can have one function that implicitly converts between different units vs in Java units need to be explicitly converted. This means C++ has GetAngle and Java has getDegrees and getRadians.Now C++ just has the extra GetAngle function