Add some control architectures
This commit is contained in:
parent
165b3a7dd1
commit
9a9debfaf4
Binary file not shown.
Binary file not shown.
@ -1,8 +1,7 @@
|
|||||||
function [] = initializeController(args)
|
function [] = initializeController(args)
|
||||||
|
|
||||||
arguments
|
arguments
|
||||||
args.type char {mustBeMember(args.type,{'open-loop', 'iff', 'dvf', 'hac-dvf'})} = 'open-loop'
|
args.type char {mustBeMember(args.type,{'open-loop', 'iff', 'dvf', 'hac-dvf', 'ref-track-L', 'ref-track-iff-L', 'cascade-hac-lac'})} = 'open-loop'
|
||||||
args.K (6,6) = ss(zeros(6, 6))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
controller = struct();
|
controller = struct();
|
||||||
@ -16,8 +15,12 @@ switch args.type
|
|||||||
controller.type = 3;
|
controller.type = 3;
|
||||||
case 'hac-dvf'
|
case 'hac-dvf'
|
||||||
controller.type = 4;
|
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
|
end
|
||||||
|
|
||||||
controller.K = args.K;
|
|
||||||
|
|
||||||
save('./mat/controller.mat', 'controller');
|
save('./mat/controller.mat', 'controller');
|
||||||
|
Loading…
Reference in New Issue
Block a user