Advertisement
ClementBen

TP 2 - Contrôle commandes

Oct 7th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.88 KB | None | 0 0
  1. R = 1.34;
  2. L = 0.12e-3;
  3. Ke = 60/(585*2*pi);
  4. Kc = 16.3e-3;
  5. Jm = 9.19e-7;
  6. Kom = (1.75e-3)/(2*pi/60);
  7. Kth = 0.5/(10*pi/180);
  8. x = 36;
  9.  
  10. f = 0;
  11. Cr0 = 1e-3;
  12.  
  13.  
  14. p = tf('p');
  15. % Question 2
  16.  
  17. % Modèle avec approximation :
  18. delta  = 4*Jm^2*R^2 - 8*Jm*L*Kc*Ke;
  19. fprintf('Delta = %i\n', delta);
  20. lambda1 = (-2*Jm*R - (delta^0.5))/(4*Jm*L);
  21. lambda2 = (-2*Jm*R + (delta^0.5))/(4*Jm*L);
  22. fprintf('lambda1 = %i\n', lambda1);
  23. fprintf('lambda2 = %i\n', lambda2);
  24. Kvinf = Kom/Ke;
  25. TuuGT1 = Kvinf/(1-p/lambda2);
  26. hold on;
  27. %bode(TuuGT1);
  28.  
  29. % Modèle sans approximation :
  30. TuuGT2 = (Kc*Kom)/(2*Jm*L*p*p+2*Jm*R*p+Kc*Ke);
  31. hold on;
  32. %bode(TuuGT2);
  33.  
  34. % Question 3
  35.  
  36. % Modèle avec approximation :
  37. TuuP1 = (Kth*TuuGT1)/(Kom*x*p);
  38. hold on;
  39. bode(TuuP1);
  40. % Modèle sans approximation :
  41. TuuP2 = (Kth*TuuGT2)/(Kom*x*p);
  42. hold on;
  43. bode(TuuP2);
  44.  
  45. % 6.2 : Manipulation
  46.  
  47. %Question 3
  48. Te = 0.001;
  49. Tf = Inf;
  50.  
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement