% DC flat mootori GPM9 (D12x4cm-32W) parameetrite sisestus:
%
% Ra -  vastu-emj. konst.[V/rad/s](Back-emf constant of motor)
% Jm - rootori inertmoment 	[kg.m^2](Inertia of motor rotor)	
% JL - koormuse inertmoment mootori mähise takistus	[ohm] (Armature resistance of motor)	
% La - mootori mähise induktiiv.[H]   (Armature inductance of motor)	
% Ki - mootori jõumomendi konst.[Nm/A](Torque constant of motor)	
% Kb - mootori	[kg.m^2](Inertia of load)		
% Bm - mootori hõõrdetegur	[Nms] (Motor Viscous-friction coef.)	
% BL - koormuse hõõrdetegur	[Nms] (Load Viscous-friction coef.)	
% N  - ülekande suhe		      (Gear-train ratio)		

N  = 1/5;

Ra = 1.1;
La = 0.02;

Ki = 0.022; % [Nm/A] 
Kb = 0.022; % [V/rad/s]
 
Jm = 0.00002; % [Nm.s^2],[kg.m^2]
JL = 0.0004;   % [Nm.s^2],[kg.m^2] max koormuse inertsimoment

Bm = 0.0000285; % [Nms]  

BL = 0.0110;   % [Nms]max sumbuvus tegur

%Tau_meh=Jm/Bm

% Kogu inertsmoment (Total inertia)
Jt = Jm + (N^2)*JL

% Kogu hõõrdetegur
Bt = Bm + (N^2)*BL

