|
Re: Speed PID Function
Quote:
Originally Posted by John_1102
I just ran a test with my encoder and I get a HUGE amount of oscillation when I'm just pulling the number from the getRate() method even when I'm running at a constant speed.
I can't get a RPM reading with this much oscillation.
|
Filter it out. But to be honest, it is not even that bad. Our robot has less than a 1-2% margin of error, it just looks huge because the scalar values are huge. One of the former programming mentors told me that Kalman Filter is overkill with such small error for the purposes of FIRST.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
|