Add some control architectures
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -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'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user