Home > classes > @ssm > B_a2w.m

B_a2w

PURPOSE ^

constructs the conversion matrix from differentiated Kardan angles to rotation rates

SYNOPSIS ^

function B = B_a2w(Vector)

DESCRIPTION ^

constructs the conversion matrix from differentiated Kardan angles to rotation rates
Conversion of differentiated  Kardan angles to rotation rates: omega= B(alpha)* alpha_dot

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function B = B_a2w(Vector)
0002 %constructs the conversion matrix from differentiated Kardan angles to rotation rates
0003 %Conversion of differentiated  Kardan angles to rotation rates: omega= B(alpha)* alpha_dot
0004 
0005 
0006 sizeV = size(Vector);
0007 if (sum(sizeV)==4 && ( ( sizeV(1)==1 && sizeV(2)==3 ) || ( sizeV(2)==1 && sizeV(1)==3 ) ) )
0008     theta = Vector(1);
0009     eta = Vector(2);
0010     phi = Vector(3);
0011     
0012     B = [ 1   0                 -sin(eta)         ;...
0013           0   cos(theta)     cos(eta)*sin(theta)  ;...
0014           0   -sin(theta)    cos(eta)*cos(theta) ];
0015  else
0016     str = 'the input vector for convertion is:';
0017     utils.helper.msg(utils.const.msg.MNAME, str);
0018     display(Vector);
0019     error('Vector for convertion is not a 3*1 nor a 1*3 matrix (see line above)!');
0020 end
0021 end

Generated on Wed 27-Aug-2008 13:30:29 by m2html © 2003