View Single Post
  #10   Spotlight this post!  
Unread 15-01-2013, 00:30
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: Keep the engine speed

Quote:
Originally Posted by BradAMiller View Post
If you want to use the PIDController class for this, be sure to use the FeedFoward term. It is documented partway down this page:

http://wpilib.screenstepslive.com/s/...rs-pid-control

but basically, you need to give the motor a base value that is close the desired motor speed. The P, I, and D adjustments will be added to the FeedForward term in the calculations.

Brad
Happy to see a feed forward term was added to the PIDController class this year!