View Single Post
  #4   Spotlight this post!  
Unread 14-01-2013, 19:40
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Keep the engine speed

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
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute