Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //POMERAJ-------------------------------------------------------------
- int u;
- // trapezoidal rule for calculating integral
- //calculate integral error
- theManager.GetActivFlowControl().errInteg += difF;
- //calculate diferential error
- float errDif = difF - theManager.GetActivFlowControl().prevDif;
- theManager.GetActivFlowControl().prevDif = difF;
- //OVO JE SAD POMERAJ U MIKRONIMA
- u = (int)(
- config.kFlowDiffTT * difF
- + config.kErrIntegrTT * theManager.GetActivFlowControl().errInteg
- + config.kErrDifTT * errDif );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement