24 lines
462 B
Matlab
24 lines
462 B
Matlab
function [] = initializeController(args)
|
|
|
|
arguments
|
|
args.type char {mustBeMember(args.type,{'open-loop', 'iff', 'dvf', 'hac-dvf'})} = 'open-loop'
|
|
args.K (6,6) = ss(zeros(6, 6))
|
|
end
|
|
|
|
controller = struct();
|
|
|
|
switch args.type
|
|
case 'open-loop'
|
|
controller.type = 1;
|
|
case 'dvf'
|
|
controller.type = 2;
|
|
case 'iff'
|
|
controller.type = 3;
|
|
case 'hac-dvf'
|
|
controller.type = 4;
|
|
end
|
|
|
|
controller.K = args.K;
|
|
|
|
save('./mat/controller.mat', 'controller');
|