|
Re: PID question
I added the divide by x's in there to increase precision... basically this robot controller cannot do floating point calculations, so i had to tell the controller to divide by something to get some amount of precision.
when i divide by ten, you are essentially getting precision of control to 1 decimal place, 100 is two, and 1000 is three. kI is divided by 1000 because typically very small changes in that constant can have a very large impact on the system. likewise, larger changes on kD wont have such a great impact.
and yes, the function is limited to 0-255.
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
|