|
Re: Speed PID Function
Quote:
Originally Posted by John_1102
As far as I know PID Control is normally applied to move a motor, ei. an arm or wheel to a set target/position/distance.
What I NEED to implement is a speed based PID method.
I input a rate.
In my java encoder.java class it lists a method getRate();
I suspect this works by returning......a rate which I could use to set my speed.
from the rate/speed I input... I need to implement a PID method so when voltage drops or a ball passes through the shooter I am using, the POWER % will increase to compensate to allow the shooter to hold a constant SPEED.
|
Logically, it is no different than a positional PID. Just the input will be in FPS or RPM (RPM in my case). The only difference will be the constants. Instead of the target being an angle, it simply is the RPM. Same goes for any other unit.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
|