Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. //POMERAJ-------------------------------------------------------------
  2. int u;
  3.  
  4. // trapezoidal rule for calculating integral
  5.  
  6. //calculate integral error
  7. theManager.GetActivFlowControl().errInteg += difF;
  8.  
  9.  
  10. //calculate diferential error
  11. float errDif = difF - theManager.GetActivFlowControl().prevDif;
  12. theManager.GetActivFlowControl().prevDif = difF;
  13.  
  14.  
  15.  
  16. //OVO JE SAD POMERAJ U MIKRONIMA
  17. u = (int)(
  18. config.kFlowDiffTT * difF
  19. + config.kErrIntegrTT * theManager.GetActivFlowControl().errInteg
  20. + config.kErrDifTT * errDif );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement