-
Notifications
You must be signed in to change notification settings - Fork 8
/
utsea_v2_OL.m
35 lines (29 loc) · 940 Bytes
/
utsea_v2_OL.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% all the parameters are expressed in linear space
% m = 360; %kg
% b = 2200; %N*sec/m
r_joint = 0.025;%m/rad
IM = 360;
IL = 22.4;% I_arm = 0.014 kg-m^2, r_pivot = 0.025 m, IL = I_arm/r_joint^2
bM = 2200;
bL = 160;
k = 350000; %N/m
Np = 4.0;
lead = 0.003;
N = 2*3.14159*Np/lead;
i2T = 0.0276; %Nm/A, in joint (rotary) space
eff = 0.9;
beta1 = N * i2T * eff;
ktau = i2T/r_joint; % N/A, in linear space
% % linear parameters
% IM = gearRatio^2 * 1.06 * 10^(-5)/r_knee^2;%360;
% IL = 0.02914/r_knee^2;%200;%0.16kgm^2;
% bM = 2/r_knee^2;%2000;
% bL = 1/r_knee^2;%1250;
% k = 331/r_knee^2;%350000; %rad/nm, or N/m
% beta1 = 3.21/r_knee;
% natural_freq = sqrt(k/m);
% damping_ratio = b/(2*sqrt(m*k));
% damped_freq = natural_freq*sqrt(1-damping_ratio^2);
% damped_freq_hz = damped_freq/2/pi;
%% plant model
%P = tf(k*N*i2T*eff,[m b k]); %tfr function from harmonic drive torque to spring torque (high z)