Transmissibility and Compliance comp IFF/DVF/OL
This commit is contained in:
		
							
								
								
									
										22
									
								
								src/initializeController.m
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								src/initializeController.m
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
function [controller] = initializeController(args)
 | 
			
		||||
% initializeController - Initialize the Controller
 | 
			
		||||
%
 | 
			
		||||
% Syntax: [] = initializeController(args)
 | 
			
		||||
%
 | 
			
		||||
% Inputs:
 | 
			
		||||
%    - args - Can have the following fields:
 | 
			
		||||
 | 
			
		||||
arguments
 | 
			
		||||
  args.type   char   {mustBeMember(args.type, {'open-loop', 'iff', 'dvf'})} = 'open-loop'
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
controller = struct();
 | 
			
		||||
 | 
			
		||||
switch args.type
 | 
			
		||||
  case 'open-loop'
 | 
			
		||||
    controller.type = 0;
 | 
			
		||||
  case 'iff'
 | 
			
		||||
    controller.type = 1;
 | 
			
		||||
  case 'dvf'
 | 
			
		||||
    controller.type = 2;
 | 
			
		||||
end
 | 
			
		||||
		Reference in New Issue
	
	Block a user