View Single Post
  #6   Spotlight this post!  
Unread 12-02-2016, 10:24
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Quote:
Originally Posted by E Dawg View Post
I did some hunting in the class hierarchy and there are no derived classes. That's why we're confused. Maybe it is a good idea to create our own derived classes instead of using PIDController directly?
Unless you have specific reasons to do so, such as a custom error calculation or other changes from the default PID calculations done by WPILib, it's easier to just use the built in implementation. As everyone else has said, the functions are virtual so that IF you decide to create a custom controller, you can override the default implementation.