Add script to identify tf from force to displacement of the legs

This commit is contained in:
Thomas Dehaeze
2018-10-29 13:37:36 +01:00
parent fa3658509c
commit ef6f4613b1
8 changed files with 57 additions and 12 deletions

View File

@@ -50,6 +50,8 @@ function [inputs] = initializeInputs(opts_param)
Ry = 3*(2*pi/360)*sin(2*pi*0.2*t);
elseif islogical(opts.Ry) && opts.Ry == false
Ry = zeros(length(t), 1);
elseif isnumeric(opts.Ry) && length(opts.Ry) == 1
Ry = opts.Ry*(2*pi/360)*ones(length(t), 1);
else
Ry = opts.Ry;
end
@@ -60,7 +62,7 @@ function [inputs] = initializeInputs(opts_param)
elseif islogical(opts.Rz) && opts.Rz == false
Rz = zeros(length(t), 1);
elseif isnumeric(opts.Rz) && length(opts.Rz) == 1
Rz = 2*pi*(opts.Rz/60)*t;
Rz = opts.Rz*(2*pi/360)*ones(length(t), 1);
else
Rz = opts.Rz;
end