Add "init" type to nano-hexapod

correct init type of sample
add file to initialize the stages under gravity
This commit is contained in:
2020-03-31 16:07:13 +02:00
parent 23e7129687
commit f816c80906
4 changed files with 157 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
function [nano_hexapod] = initializeNanoHexapod(args)
arguments
args.type char {mustBeMember(args.type,{'none', 'rigid', 'flexible'})} = 'flexible'
args.type char {mustBeMember(args.type,{'none', 'rigid', 'flexible', 'init'})} = 'flexible'
% initializeFramesPositions
args.H (1,1) double {mustBeNumeric, mustBePositive} = 90e-3
args.MO_B (1,1) double {mustBeNumeric} = 175e-3
@@ -61,6 +61,8 @@ switch args.type
nano_hexapod.type = 1;
case 'flexible'
nano_hexapod.type = 2;
case 'init'
nano_hexapod.type = 4;
end
save('./mat/stages.mat', 'nano_hexapod', '-append');