Thread: PID question
View Single Post
  #8   Spotlight this post!  
Unread 11-01-2008, 00:23
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
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