Add "init" type to nano-hexapod
correct init type of sample add file to initialize the stages under gravity
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user