View Single Post
  #3   Spotlight this post!  
Unread 25-04-2004, 20:45
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: (Experimental) PID Control System

yes...you want to integrate i add up all the values then divide by total time (multiplying each new i by time shouldn't matter because its an "assumed" even loop time...or use interrupts timers or whatever..) ...then multiply by Ki... don't even bother multiplying by .025 or whatever the loop time is ...just by 1 its simpler

this is what I did for our also Experimental PID loop (PI so far actuallY):
Code:
error=realv-targetv;
errorint=(error+errorint/time)/intprop;  //intprop does the same thing as your Ki term
time++;
also it seems that last_OUT isn't being changed anywhere since definition (it always=0)

can you please explain how the deriviatve portion works? ... I am kinda clueless to how it works...and does anything ...basically the theory behind it..and why it helps and what exactly it is
__________________
Team 701

Last edited by Salik Syed : 25-04-2004 at 21:27.