battle programmers alliance
Would you like to react to this message? Create an account in a few clicks or log in to continue.


battle programming a forum for elite programmers with extreme will power to sharpen their skills
 
HomeGallerySearchRegisterLog in
 

 PID formula

Go down 
AuthorMessage
Moti Barski
super
super
Moti Barski

Posts : 568
Join date : 2011-08-02

PID formula Empty
PostSubject: PID formula   PID formula EmptyFri Apr 30, 2021 12:06 am









PID = P + I + D
err = setpoint-processValue
P = K(err)
reset = reset + k/tau_i*err
I = reset //once err changes direction or zero reset =0
D = K/tau_i*(error-lastError); lastErr = err;

K : gain : this is twicked
K/tau_i : can also be twicled for optimal performance
tau_i : second per repeat k/tau_i*sum
or
repeats per minute : k*tau_i*sum

systems can use : P / PI/ I / PID / PD

_________________
MB over and out emp it up
Back to top Go down
 
PID formula
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: battle programming-
Jump to: