View Single Post
  #19   Spotlight this post!  
Unread 08-02-2011, 10:21
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Encoder as PIDSource

It is nice that the Encoder class can be used as a PIDSource now but it ends up that it still doesn't help me. I am using one encoder for both position AND speed feedback. Not a problem tho i just create two classes, RatePIDSource and PositionPIDSource. I pass a reference to a single Encoder into the constructor of these two objects and in their PIDGet() return distance or rate accordingly.
Reply With Quote