2018-10-24 15:08:23 +02:00
|
|
|
function [ry] = initializeRy(opts_param)
|
|
|
|
%% Default values for opts
|
|
|
|
opts = struct('rigid', false);
|
|
|
|
|
|
|
|
%% Populate opts with input parameters
|
|
|
|
if exist('opts_param','var')
|
|
|
|
for opt = fieldnames(opts_param)'
|
|
|
|
opts.(opt{1}) = opts_param.(opt{1});
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-06-16 22:57:54 +02:00
|
|
|
%%
|
|
|
|
ry = struct();
|
|
|
|
|
2018-10-12 13:22:29 +02:00
|
|
|
ry.m = 200; % [kg]
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2018-10-24 15:08:23 +02:00
|
|
|
if opts.rigid
|
|
|
|
ry.k.tilt = 1e10; % Rotation stiffness around y [N*m/deg]
|
|
|
|
else
|
|
|
|
ry.k.tilt = 1e4; % Rotation stiffness around y [N*m/deg]
|
|
|
|
end
|
2018-10-12 18:17:03 +02:00
|
|
|
|
2018-06-16 22:57:54 +02:00
|
|
|
ry.k.h = 357e6/4; % Stiffness in the direction of the guidance [N/m]
|
|
|
|
ry.k.rad = 555e6/4; % Stiffness in the top direction [N/m]
|
|
|
|
ry.k.rrad = 238e6/4; % Stiffness in the side direction [N/m]
|
|
|
|
|
2018-06-21 11:42:46 +02:00
|
|
|
ry.c.h = 10*(1/5)*sqrt(ry.k.h/ry.m);
|
|
|
|
ry.c.rad = 10*(1/5)*sqrt(ry.k.rad/ry.m);
|
|
|
|
ry.c.rrad = 10*(1/5)*sqrt(ry.k.rrad/ry.m);
|
|
|
|
ry.c.tilt = 10*(1/1)*sqrt(ry.k.tilt/ry.m);
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2018-10-11 10:25:57 +02:00
|
|
|
%% Save
|
|
|
|
save('./mat/stages.mat', 'ry', '-append');
|
2018-06-16 22:57:54 +02:00
|
|
|
end
|