Add some control architectures

This commit is contained in:
Thomas Dehaeze 2020-03-23 09:56:01 +01:00
parent 165b3a7dd1
commit 9a9debfaf4
3 changed files with 7 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,8 +1,7 @@
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))
args.type char {mustBeMember(args.type,{'open-loop', 'iff', 'dvf', 'hac-dvf', 'ref-track-L', 'ref-track-iff-L', 'cascade-hac-lac'})} = 'open-loop'
end
controller = struct();
@ -16,8 +15,12 @@ switch args.type
controller.type = 3;
case 'hac-dvf'
controller.type = 4;
case 'ref-track-L'
controller.type = 5;
case 'ref-track-iff-L'
controller.type = 6;
case 'cascade-hac-lac'
controller.type = 7;
end
controller.K = args.K;
save('./mat/controller.mat', 'controller');