View Single Post
  #2   Spotlight this post!  
Unread 14-10-2016, 20:01
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Captain
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 142
nickbrickmaster is an unknown quantity at this point
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.
Reply With Quote