|
Re: Position and velocity PIDControllers using same encoder
Quote:
|
Originally Posted by Oblarg
I suppose you could write a wrapper class that implements PIDSource and contains the encoder, but that seems ugly.
|
Looking at the code, I think this is your only option. If I had a dime for every time I had to implement an ugly solution, I'd have like, three dollars.
Alternately, use Python, and pass in the function you want as the PIDSource.
__________________
I have approximate knowledge of many things.
FRC 3184: 2014-, FTC 10648: 2015-
Last edited by nickbrickmaster : 14-10-2016 at 20:11.
|