Beruflich Dokumente
Kultur Dokumente
w o
USE OF QUATERNIONS IV FLIGHT MECHANICS
SJ WILBUR L. HANKEY
jf L. EARL MILLER
tow STEPHEN J. SCHERR
March 1984
mmmJ
SD
rE-
V. ,
When Government drawings, specifications, or other data are used for any purpcse
other khan in connection with a definitely related Government procurement operation,
the United States Government thereby incurs no responsibility nor any obligation
whatsoeveri and the fact that the government may have formulated, furnished, or in
any way supplied the said drawings, specifications, or other data, is not to be re-
garded by implication or otherwise as in any manner licensing the holder or any
other person or corporation, or conveying any rights or permission to manufacture
use, or sell any patented inventlon that may in any wAy be related thereto.
This report has been rviewed by the Office of Public Affairs (ASD/PA) and is
releasable to the National Technical Informaticn Service (NTIS). At NTIS, it will
be available to the general public, includiag fore.4gn nations.
This technical report has been reviewed and is approved for publication.
Copies of this report should not be returned unless return is required by securityJ
considerations, contractual obligations, or notice on a specific document.
........*.* . . *.P.-7
-UNCLASSIFIED
AA / I
SECV14ITY CLASSIFICATION OF T0418 PAN ............................................
REPORT DOCUMENTATION PAGE
AiwSTRICTIVdE MARKINGS
Is 11EPORT SECURI1TV CLARSIFICATION
UNCLASSIFIED_______________________
28. SCURITY CLASSIFICATION AUTH4ORITY 3. OISTRIBUTIONIPAVAI LAS ILITY OP REPORT0
em'.. 4. PERFORMING ORGANIZATION REaPORT NUM09ERWIs S. MONITORI$NG, ORGANIZATION REPORT NUMBRSRI(S) UU,. U
AFWAL-TR-84-3045
Ba.NAM OPPEPORINGORANIATIN b. OFFICE *YMNOL 7a. NAME OP MONITORING ORGANIZATION
Flight Dynamics LaboratoryI
* AFWAL/ FIMM AFWAL/FINM ____________________
Be. ADDRESS (City, State and ZIP Cede) 76. ADORESS (City, State and ZIP Code)
*Flight Dynamics Laboratory (AFWAL/PIW4)
AV Wright Aeronautical Laboratories (AFSC)L
Wright-Patterson Air Force Base, OH 45433
go. NAME OP FUNOING/SPONSORING
ORGANIZATION J(it
&bl.OFF ICE SYMBOL
appleicble)
S. PROCURE[MENT INSTRUMENT IDENTIFICATION NUMBER
Be, ADDRESS (City, State and ZIP Code) 10. SOURCE OP FUNDING NO$.
PROGRAM PROJE1CT TASK WORK UNIT
ELRMENT NO. No. NO.No
UNCLASSMkkI
itI. TITLE (include Security Classificoaton) ___________ ________
17. COSATI CODES 05. SUBJECT TERMS (Continue on prve'uer it necessary and Identify by black number)
FIELD GROUP SUB. on,
01 01 II- U
Classical flight mechanics employ velocity coordinate or body axes systems. The
* U'.'
latter uses Euler angles to define the aircraft orientation. Singularities and
ambiguities occur whenever the flight path or elevation angle is plus or minus ninety
* ~degrees. These problems are circumvented through the use of quaternions. Two problems
tion roaional dyaics a ndmthe soutony for the suaeondios an Eulmetria aonglesare
Thresd;te
aren adresd;te foairstl symmericanlcoagre-
dyaics an thesolutticody and the suaeondios an
determined for both problems.
Accesuion For
+ GRAi&
DTIC TAB
Unannounced 0
Justifioatio +
2'
- ' "
By
Distribut ion/
Availability Codes
-- Av&iY and/or
Dist Special
.. ~ ~ ~ IUa ' .. I
iii.,'
.'.
F ,
TABLE OF CONTENTS'.
SECTION PAGE
w,..T,
W INTRODUCTION . . . . . .,.... . . . ... ... . . 9
_.
DEFINITION OFQUATERNIONS .".'. .... .... '
SNonaxtsymmetric Configuration . .. .. .. .. .. .. . .. 9
SAxisymmetric Configuration . .. .. .. .. .. .. .. . .. 10 I,_ I ..,
II DEFNITIO
QUTERNINS .. OF
..-.. ,....,.....
SAPPENDIX A -ANALYTIC SOLUTION: NONAXISYMMETRIC CASE . . .. 13
III RIIDBODYYNAMICQUATIN..:.-..:.,....,.
IVM APPENDIX BE
D L PR B -ANALYTIC
* * * SOLUTION:
* * AXISYMMETRIC
. . . * . CASE
* *. ..* * . ..*o
* 20 i::.'i:
. -.
II",..:..;
IIaismeti C-iurton.. .*** "..
-. FIGU/RES . . . . . . . . . . . . .. 253''
-o" .I 1.QI
, 1.N.,' .
b span (feet)
c chord (feet)
]- "4.;4.. - - - - .4I - 4
vi
LIST OF SYMBOLS (Cont'd) .,,, C"
e.:
*.C.;T1"
14.
Vi i C"""
% 'C
vi..
"SECTION I
"IINTRODUCTION
I.. ..:
- -. . .. . :v 4 ,,k: '.4 *
, ... , i' ,. . . . .*'- . *'.. , .4.
- .- - , .' .. .... ...
'. ,- .. .* . -,...* :,' ..
... .. ,a
9Y ..
11 S~SECTION
DEFINITION OF QUATERNIONS
Hamilton (circa 1840) was the first to point out that the three
Euler angles are inadequate to uniquely define the orientation of a body
in space and that four variables are required to resolve the predica-
ment. Hence he invented the quaternion &vA,6
W-8~ + V -
Q . (q1 1 q2 t q 3 q4 ) (1),
Three of the elements describe a vector, and this vector defines an axis'.
of rotation. The fourth element, a scalar, defines the magnitude of a
rotation angle about the vector axis.
The definition of the four elements of the quaternion follows:
q3 2 CS
where m,B,y are the angles between the rotation axis and the x,y,z axis v7
q2 +q +q + q2
q1 2 q3 4 (3)
.k ~
acoorIto
2 2 c s2A iA sinIsinA
2 2 213
Cos Jocoo. sin A- aIn.,1 sin Cos
q co 2 2 2 2 2
V
2
(4)
I.,.o. o 2 , o. ,
q4 sinCO
4 Cos A + in
S -sin
q, 0 -p -q -r q"
q2 P 0 r -q2
42 1
q2 11
(6)
* 3 q "r 0 P q3
i3.
qN r q -p 0 q
- where p. q, r are the rotaticn rates in roll, pitch and yaw respectively
that must be obtained from the rigid body dynamic equations. These
equations are well behaved since p,q, and r are finite.
3
a't-.'' . .: :; ' ; ;- ':.. : ,:,.-" ."-' . - a-. . .. . . .: . . . . .:
" -* . -..... "=''=... ... .. ~_ l.J L-: e 'J " %'*',% .-'','* ' % ',-L L* *,__" , " o .*,,. -- .'. - p
i'. '1
SECTION III
* HMoment Equations
SIx f+ (I -I )qr L(u,vwp,q,rp,Sb)
zy
Iy + (I -Iz )pr "Ai(u,v,wpqr,p,S,c) (7)
Force Equations
4a,
*o . . . . **. . *. ,
The hypothesis at this point is that the numerical solution of the
quaternion rate Equation (6), Is better behaved than the alternative
procedure for resolving the Euler angles. The differential equations (7
for the Euler angles are
Clearly, difficulties arise when 0 reaches plus or minus 900. The rate
for the azimuth angle grows without bound, thus numerical integration of
Equation (9) is not possible. But this problem is circumvented by first
solving for the quaternions and then the Euler angles from Equations (5).
We next turn our attention to the development of the rotational
solution for two problems.
*' *
- a =4
"SECTION IV
MODEL PROBLEM ft
Nonaxisymmetric Configuration
The first problem was selected to demonstrate the essential features
of manipulating the quaternions and to obtain the required numerical
experience. Observe that the aerodynamic moments, Equations (7), are
coupled to the force equations, Equations (8), through the velocity components.
For a situation in which the aerodynamic torque vanishes, the dynamic
equations are uncoupled. We will consider such a case, that of a thin
retangular plate which is illustrated in Figure 2(a). In this case,
the moments of inertia are also simplified as follows:
I a I + Ix and I Ix (10)
z y x y
This example corresponds to a configuration where all products of inertia
are zero, which is a fair approximation for most aircraft. For the case
of no external torque, it can be shown that rotation about the y vehicle
axis with the intermediate value for the moment of inertia (I ) is unstable, "
y
while rotation about the other two axes is stable. For this problem the f
+ qr -0 ,
- pr a 0 (11)
2
++6 p-0
.4.o
p(O) * c..
- qW) *(13)
Q(o) (1.0.0.0)
Axisyetric Configuration
The shape for this problem is a thin circular disk with the x and y
axes in the circular section and z'perpendicular to these axes. The
configuration is illustrated in Figure 2(b). All products of Inertia
4.
".,.-,%'.-
7' ., .
'/' '""";' -"'[ " ": " .' '" "; " ;` ` `; ` ? : : ` ` T` . ` `` ` ` . -, .' .v '. ' .: ,. . . ,2 "."7
*J 17:~
-4 ;-, i7 71
101
bu h
where R is the radius of the disk. The initial rotatinI
z-axis, thus
4.". p(O)-q(O)uO
* Itis assumed that the aerodynamic moments are zero. Equation (7)reduces
to
p+ qr -0
0m
Equations (6)and (16) describe the angular motion of the rigid body, given
:~
the initial conaltions, Equations (15)and
*(O)-f('.4
(17)
From Equation (4), the initial values for the quaternions are
'
0-0 0 (18)
Q(O)-(cos -, 2 0, sin 22' 0)
.48
T. 7.mil -7 -j'..i-i' %
SECTION V
NUMERICAL RESULTS
Nonaxi sym.etric Configuration |11|.
The system of equations (Equations (6) and (11)) were solved for
parametric values of fl- 10 rad/sec. c a 0.01 and 8 = 0.7.
A Runge-Kutta fixed time step Integration technique was used.
Figures 3, 4, 5 present the roll, pitch and yaw rates for several
hI.Bm.
revolutions as computed from Equation (11). Figures 6 through 9 present
results. The Euler angles were then computed from Equations (5).
(6) which are well behaved. Also, they are bounded by plus and minus
one. Thus Equations (11) are well behaved and no difficulty is obtained
quaternions on the right side changes sign. Thus the right side changes
rapidly from large positive values to large negative values and vice
versa.
91m
4 e:
.I
-W
AxisYmmetric Configuration
The system of equations, Equations (6) and (16) were solved for a
can be verified numerically that the solution for the body angular rates
is
P o
(19)
1.
"*4.
' -.
S.4..,
10 ? 4.,
SECTION VI
CONCLUSIONS ,
body rotational rates were periodic, however, the quaternions and Euler
angles were not.
The second problem represented an axisymmetric configuration. Again
no numerical difficulties were obtained when the quaternions were used.
The rotation was about the yaw axis. Two significant results obtained
were that if the initial bank angle was zero, then the trajectory remained
in the initial vertical plane. The second result was that the attitude did
not change throughout the trajectory. The use of quaternions to solve flight
mechanics problems is therefore highly recommended for future
investigations.
i11
-. . ... * U * * q~ S I * - U.
-* ~
** * *
** we~~. . *~ * .
-- * 5 Yb.U.
*5.*~*
"A.. I
REFERENCES
1. Gallaway, C., "Numerica.1 Comoutition of an Autorotating Plate." PhD
Dissertation, AFIT/DS/AA/83-1, WPAFB, OH (to be published).
Bil- 2. Robinson, A.C., "On the Use of Quaternions In Simulation of Rigid Body
Motion," WADC TR 58-17, Dec 1958, USAF, Wright Air Development Center, WPAFB, OH.
3. Ickes. B.P., "A New Method for Performing Digital Control System
Attitude Computations Using Quaternions," AIAA Journal, Vol. 8. No. 1,
Jan 1970.
4. Etkin, B., Dynamics of Atmospheric Flight, New York, Wiley, 1972.
S. Byrd, P.F., and Friedman, M.D., Handbook of Elliptic Integrals for
Engineers and-Phsi.cists, Springer-Verlag, 1954.
6. Selby. S.M.. CRC Standard Mathematical Tables. Student Edition, 18th
Edition, The Chemical Rubber Co. 1970.
*--A-- - -
12xil
W7.
APPENDIX A
AINALYTIC SOLUTION: NONAXISYMNETRIC CASE
p +qr- 0P(o)-CA
S-pr- 0 q(O)-fn (A-1)
*2
+ pq R 0o r(O) 0n
_2
ru-2pq 2*
6pp/r or
d
-(6p2 2 _r2
dt 0
.These
9 three equations may be integrated readily and evaluated using the
, q 2 + r2/62 2 (A-3)
p2 r 2 /6 2 C2',..
q ;p + ir -q (r2 + 2 p2 )
(A-4)
13
' . .~ ... ~ ~ -. e~ll
q 1/2 A(A-6)..
Hence Equation (A-6) becomes:
e t
[ /+2 2 ) (A-7)
q(O)
i(O) P(O) r(O) =0 (A-9)'. "'
'2 42 V2 ,E7
Hence
Cl = 6212)4(A-10)
Equation
qI0) (A-8)0S then becomes
q-2+)] (A-B3) "": -A
.2 22 2 2 2
12 62(.2 2)[f,(1+E 2)-q] (A-11) ...
14
'U.a
that for t0O, q0O and therefore the negative sign is selected.
V- '(1+c 2
2 )-q (-.14)
..
WO'-q'
sin (A-15)
Differentiating gives
Cos(A-16
dt f
Since
X(o)
-- F2
o (A-20)
where
k-2 (A-21)
"k2
r Xi ""(A-22)
i
i#+ .i n ' : +. .-. .. . . '+
. . . . . ...- " :
t -~,'
7 7rrrrrr ---
vf.'/2 -(
o
t +
V(Ik) m (A-24)
then
Reference 5
For the example problem, k is near unity, therefore frCu
+ In In (A-26)
bt
.7~
-,-
16Y
i ~16
o . ...,.. , ;...
-. ..: ..... ... ,........
.... .j ....... ... , . . *. ,4 ,
797F -q1 - r,V 177'.-
__ _ k)
00 0 0 5.991
r(O) - o
2X
4+
Ak - 2 8n
k
- *_. -;E** *
17
Since p increases
IT'.
P 12 (A-29) r
it follows that
From the initial boundary condition and v;o)4,
- e
0 0.10 10.00 0
.409 0.88 9.96 -0.61
18
The agreement between the theoretical values for the body rotational
results with Figures 3,4, and 5. Observe that the "rate period" is
a 4k
Period - n F(w/2,k) - 3.423 sec (A-32)
Note that the range may be extended as follows for any integer J:
............................................
19
-a~~7 ""T.7777. 7,-~a- -- ~
APPENDIX B
ANALYTIC SOLUTION: AXISYMMETRIC CASE
The body angular rates satisfy
+ qr 0O
-rp --o0o ,(O)
q(O) -fo,,
- 0( -),.:-"',.,.
q=O (B-6)
Substitution of p,q, and into Equation 5 gives
1 rq
Srq3
q (B-7)
q4 a " rq 1
q- - (o)q (B-8)
Analytic integration using the boundary conditions gives .--
4" q
rq, 0o
"Cos "sin.-nt(B-10) ~. -
20
in.~~ - ,
7. .77,
74 N-- W7r.1 7 7-7
qq 2 nT_
s in 2
q sinLOCsiat
q3 in ca2 2
= u sin At + v cos At
Let V denote the component of the velocity vector measured in the x-y
p
plane. Then the components u and v satisfy
U Vp cos ft
(B-14)
v-V
sin ft
.21 L.
Therefore ez which lles along the z-axis does not change. axe"ar
Consequently the orientation of the z-axis does not change. The ge
*f. I x.
conclusion is that the attitude
Sic.padqr erth does not change. afte'~~
nulrvloiy o tu
* ordntefae s/ hr
w ri 815 f
Th2a2o
hag fi dtrire from.
o d8
hpl mece mr'" *
I (.-16)
-. ft -~'
.f. - ....-. f. - *~ $. X,.. - . - - ~ -
ftOf
Itx
ft. ft
~ftft ~ ft
7 7 t
ft ft
T r
*I-..:4,
124
II
IAA
c C ' lo t C - C -9
___6
25~*4
00
* LA
crol o 01
Isi'
I *L
dpm
0;0
1626
C33
CA.
0.0"oe 0` `0
C.' a-a-
0 f, 0" 09- 19- 'It
27a
-r -7 d.06 ' %e
'
-I
*1
-' * '
*
-
* I
I
I.
Is
*4''
V I'
-I..
V.
a .2
II
i'l
a,
:2- "I
I,
4I
h
I'-
1
.7-
E
4,
Ii
u, -%
4, Eu
0'*ds 'V
*
'I-.
'I
4,
LiL
I,-
VI
4
-
5.
,*1
Wt. 28
%. * = * I
* ****V*Vj*V.. -'I
*
*' 4% ***. * -
;.**..*V.*..**....
**%*
- **
4A.
*~ 04
C490 V
294'?
A~.;~;7;;..
~ ~ --
Jill ~ .A
* A.cc
4J.
% .4w.
CC.
41~
L6.
CC
UO 0
C3
31-
~~4.
Ci
o "E ,
32o
aa
uii
",4a
in! . .
C3
4.'.
Eu'
,''. .'.''.:,,'"..'"
.. '" ."",.''.."".: oo:
.''. "'.."",;. .'',.".."". .'', "'-,', "'; ':" r " .. .. '",_-.."-"-" .." " " " '.... .-
S~33
LLL
a **j
* ,
343
.0 . .0 . .0 .1 .0 .0 4 . 0.0 0.00.0 .0 FOW
,44
.0' '
4 ".04.
p' '.0
p
I.
*4.0
* .0 0
.4 .0.0
.4 \.0.0.
4*.0
o
0*J
.00*
0.4
O *4 %'
4
I
t 1
.4
.0.4.4 .0.0.0!,..
.0
1*
4
j 0,,
.0'.0
*.0
-. 4
0
.4-
C)
- 4-.
.00 ,.0
'4.00
'.0 '.0
r.0
* 0 La. *0
.0.
'a
'p .0
'4-
. .0
35
W
%A%
C14'
~ ~
cr~~~~ 10 ~
S' S'
00 S'- 0'- 5 0 tO Iro
36
'as..
a of'% a o0 0 00. o - s - ( o
"a3
I~~ %i ~ Aa
7-
7 417 77 7 .7.77.t~.. ~ '- .
.4..
St It
* 4~4i
4cr o ro , 0 10 *- 0 1 It.'
1 4 *38
I%
*4,
I4
ON4%
4
"
+ +
! ...
. .. .. .. .. . . .. + .. , Kc
U.S
V.
* 55
.5.'..
I. ..,*
* .5
N
fI IU\ .
*:"U
'U.
U.
US
c;
- 1"
.:K "U
0J
I-
0
I.
-
C
ic
C
0
*
4.h -
U-U.
U..-
U.
55
F, %**
U,-
U-
'U
4*5
U,,
U.5
5- ____________
*U4
40 .
5to
.9 5 5
to.s
.59,. N
v*9 T C o 10 00 r e.- t.- 1 0