Skip to main content

Nonlinear stability and control study of highly maneuverable high performance aircraft

NASA-CR-188721 · NASA (NTRS) · 1991

Public domain · NASA (NTRS)Technical Reports

Overview

The purpose was to develop and apply new nonlinear system methodologies to the stability analysis and adaptive control of high angle of attack (alpha) aircraft such as the F-18. Considerable progress is documented on nonlinear adaptive control and associated model development, identification, and…

Publisher
NASA (NTRS)
Document
NASA-CR-188721
Year
1991
Pages
81
Chapters
3

APPENDIX A

APPENDIX A MATLAB and C Program Comparisons NONLINEAR STABILITY AND CONTROL STUDY OF HIGHLY MANEUVERABLE HIGH-PERFORMANCE AIRCRAFT.

NASA Project Progress Report.

by ZION HALEVY ** E.C.E, Oregon State University, Corvallis Or.

JULY 16, 1991 1. SUMMARY : The object of this report is to summarize part of the programming work done on nonlinear adaptive control model of aircraft operating in highly nonlinear regimes with large values of angle of attack.

Two models (Cho+and Stalford*models) were simulated on PC-MATLAB and converted to "C". Comparison of the simulation time indicated that performance using the "C" algorithm was increased by two orders of magnitude. Thus enabling detailed parametric analysis in short time span. The fundamental structure of C programs can be also utilized extended to future simulator models.

* * On sabbatical leave from ADA, Israel.

+ Refers to the full nonlinear longitudinal airframe model (Section 2.1 of Annual Report) * Refers to approximate nonl1_ear model of Reference 3.

-1- 2. CONTENTS.

page 3. MATLAB simulations ..............................

3.1 Cho model .....................................

3.2 Stalford model ..............................

4. "C" programs ....................................

4.1 Cho model .....................................

4.2 Stalford model ..............................

6. Conclusions and recommendations for future work... 8 9. Appendices ...................................... I0 -2- 3. MATLAB SIMULATIONS.

3.1 Cho model [2] An original MATLAB program using an Euler integration scheme (BLINI.M ,COF.M -written by Cho 1991 based on Cao et al 1990) was analyzed and restructured in order to enable general purpose use and faster execution time.

The changes performed on the original programs are as follows: a) Removal of the close-loop BARMA controller (Cho 1990) from the main program model BLINI.M and writing of a general purpose structure controller sub program.

b) Modification and improvement of the structure of the program, in particular modification of the sub program COF.M (calculate seven aerodynamic coefficients) which was called at each iteration.

The final programs named ZBLINI.M and ZCOF2.M are in the attached disk (see Appendix 3).

3.2 Stalford model. [3] A model taken from Stalford 1989 was written in PC-MATLAB with the same general purpose structure noted above . This work was done jointly with J. Dory.

The final programs named ZRUN5.M ,ZIN5.M and ZMAIN5.M using ODE45.M (Runge-Kutta 4th and 5th order integration function for numerical solution of ordinary differential equations) are on the attached disk.

The results from the MATLAB simulation ( Appendix 2) indicate that the numerical model is identical to that presented by Stalford 1989 -3- 4. "C" PROGRAMS.

4.1 Cho model The final MATLAB programs (ZBLINI.M ,ZCOF2.M) was converted to the "C" language (ZBLI3.C ,ZCOF3.C and ZBLI3.EXE -executable program).

The final programs are in the attached disk (see Appendix 3).

4.2 Stalford model.

The final MATLAB programs (ZRUN5.M ,ZIN5.M,ZMAIN5.M, ODE45.M ) was converted to "C" language (ZRUN5.C, ZIN5.C, ZMAIN5.C, ODE45.C and ZRUN5.EXE -executable program) .

* xxx.M / xxx. C extensions denote MATLAB and "C" programs files respectively.

-4-

5. Comparison between MATLAB and "C" proqrams

Matlab is an interactive program that aid with fast performence scientific and engineering numerical calculation.

Matlab allows you to solve numerical and simulation problems in a fraction of the time it would take to write in other languages like "C" or Fortran.

Furthermore, problem solutions are expressed in almost exactly the same way as they are written mathematically.

It is a complete integrated system including graphics, programmable macros,an interpreter and analytical commands.

"C" and Turbo C++ has fast and efficient compiler that enables transfer application programs to other systems.

The MATLAB is an interpreter and hasn't a compiler like "C",so the "C" language is more efficient .

The MATLAB simulations included in this report were obtained using PC-MATLAB version 3.2 .

5.1 Cho model.

Comparison of performance are summarized in Table i.

and Appendix 1 consists of examples plots from both MATLAB "C" in the same conditions as follow: Euler integration step= 0.05 [sec] (the desired accuracy).

tfinal= I0 [sec] (final value of t).

tO= 0 [sec] (initial value of t).

-5- TABLE i: Cho model.

CONTROLLER FLIGHT TIME SIMULATION TIME PROGRAM INPUT dh [SEC] [SEC] i0.0 1068 VARIABLE I. BLINI.M ,COF.M (Cho) (original prog.)

i0.0 580 VARIABLE 2. BLINI.M, ZCOF2.M (Cho) (Improve COF.M) CONSTANT i0.0 3.ZBLINI.M,COF.M -I.0 (Remove controller from main prog, [deg] original COF.M) i0.0 364 4.ZBLINI.M, ZCOF2.M CONSTANT -i.0 (Remove controller from main prog, [deg] improve COF.M) CONSTANT 10.0 6 5. C PROGRAMS ZBLI3.C ,ZCOF3.C -i.0 (Remove controller from main prog. [deg] improve COF.M) -6- 5.2 Stalford model.

Comparison of performance are summarized in Table 2.

Appendics 2 consists of examples plots from both MATLAB and "C" in the same conditions as follow: ODE45 step integration= 0.i [sec].

ODE45 tolerance= l.e-4 [sec] (the desired accuracy).

tfinal=T FINAL=I3.6565 [sec] (final value of t).

tO= 0.45,T FINAL [sec] (initial value of t).

TABLE 2 :Stalford model.

CONTROLLER FLIGHT TIME SIMULATION TIME PROGRAM INPUT dh [SEC] [SEC] VARIABLE 1.MATLAB programs: 7.5 1866 STEP ZRUN5.M ,ZMAIN5.M ZIN5.M .

(ZIN5.M) 2. C PROGRAMS: VARIABLE 7.5 6 STEP ZRUN5.C ,ZMAIN5.C (ZIN5.M) ZIN5.C j (and ZRUN5.EXE) -7- 6. CONCLUSIONS AND RECOMMENDATIONS FOR FUTURE WORK.

6.1 Conclusions Camprison of MATLAB and "C" simulation reveal that performance was increased by two orders of magnitude by the "C" simulation .

MATLAB is a "package" for development stage but for detailed parametric analysis the "C" performance better.

6.2 recommendations.

a) Using of PC-MATLAB version 3.5 (for 386 computer) for first step developing of the simulation.

We used in PC-MATLAB version 3.2 for our simulation but the new version 3.5 (for 386 computer) is faster at least four times (it hasn't limits imposed by 16 bit nature of 80286/8086 ) We used also PC-386/20 Epson computer with 80287 numeric coprocessor chip.

b) Using of MATLAB MEX-files enables to combine "C" and MATLAB programs MEX-file produce from compiled "C" linked into .EXE files and renames to .MEX extension.

So it is possible to call your own "C" programs from MATLAB as if they were built-in MATLAB function.

Speed improvement of up to a factor of 25 are possible in this way c) Using of "C" (turbo C++ Ver 1.0 ) simulation for parametric analysis.

d) Using at Cho model in ODE45.M Runge-Kutta integration function instead of Euler integration scheme to get better accuracy of results.

-8- 7. ACKNOWLEDGEMENT.

I would like to thank Prof. R.R. Mohler,Principal Investigator and R.R Zakrzewski for the assistance during this work.

8. REFERENCES.

I. J. Cao H. stalford "analytical aerodynamic model of a high alpha research vehicle wind-tunnel model" NASA NAGI-959 1990 2. Cho model- MATLAB programs: BLINI.M ,COF.M (written by Cho based on [I]) .

3. H. Stalford E. Hoffman "Maximum principle solutions for time-optimal half-loop maneuvers of high alpha fighter aircraft" ACC ,1989 (p. 2453-2458).

4. C. Moler "PC-MATLAB for MS-DOS personal computers" User's Guide ver. 3.2 1987 5. B.W Kernighan D.M Ritchie "The C programming language" 6. Turbo C++ manual User's Guide of Borland -9-

9. APPENDICES

i. Cho model : examples plot ( Fig 1 - Fig 6 ).

2. Stalford model : examples plot ( Fig 7 - Fig i0 ).

3. Programs description of the attached disk.

-i0- LI. I- ........... .: ........... ::"........ .:.......... lID __ ............. IJD ..iiiiiiiiiiiiiiiiiiiiiiiiii . ..............

, , , , iiiil • . , H I

> ! i i

.......... i i i 1 ' : ........... .......... ......... "- riiiiiii .... .... ..... .... ..... .... ....

L4 ........._ ........._-........ &-........ _o ' .... : .....'_ ....;.... '----' .... : ...._ ....J o o 111 O1 CO r,, l,O I_ _ _ O,J 1:7) 11'I O1 113 Ol _ _ _I' '_' '_" _ _ "q" ._ 11'I "q" 11'I 'q" F, T, F, _ T ...... .... .......... .............. .... _o I_ _. , ,\, .... .... .., :_. ]o_

I

I--I : : : :/ : : : :_ ..................

_.__\i_i _

-_ i i i i : ! i : "_ _ _ i i i : i ! '-

-., : -,-,_o_ _ _ _ _ i _._i I ..... ....

13, : : : : : : _ : : : : : : •

_...i .....i .... "...... L .... k .....i........ a...J o _=_ .'r i___i i i, _, i . _ o

(D 1",. ID if'J _ t'_ t'_ _ UL"J _ 0 0,1 "q" (.0 ID 0 t'_ '_" 0 0 0 0 0 0 0 0 I I I I _ '_ 0 0 0 0 0 0 0 0 i l I CO @ !

If 5._ + -,1

?

kn ...;_ 0 .,++..1 0rl e,,., o o .,,IJ C; o¢'1 s,k,.

o o

.4

- +'- "l C ._..°o.°°° ..... 0o°.°4..°,_.6°,°°o0.o ..... ..o.,o°.._0°°°.0 .... 01oo..,°°°o. o0°°o. ..... °o0... .... • _ .......... _. ............. | ORIGINAL PAGE IS OF POOR QUALITY ll"l ll'l

• _ _ ....... !......!...._-i ....... i......"t,_

...... ....... .....

........ i........ i.....

.................... : ..............

...... ..... .................. o <_, tO ........... _............. ._ ....... :............ _ _,

.................... _ .... ._i _

i i i I _ ,., , , ., ,. ,, ,.,

.............. i i i ', i i __ i::..._.<_,: _ _ .... ......... <_

..,.y-" , : :

_iiiiii!!<__ ! ! i ..... ...... ...... ..... ...... .... oi_ ,14

o L............l........... i ............i .......... .1 o

ORIGINAL P._G_ IS OF POOR QUALITY

F....T-'T .... l.... 7..... !.... 7-'7--

CU

: i i i

i i ! i i _!i

1' • ° • • J° " • : : : : ,,1 : : F" .... i .... - .... ! ....._" .... _..... ! .... - .... , _,k ..... _ ...... ...... !....... i.....

i"

I : : : : : : : i

...... i...... i..... __ ....... _ ...... i.!

I/! iii!

_..__-_-\ .... i...... _._, 4.a

_'"I..... i........... ." .... '..... ' ..... " .... "

N

'i i H

Jl .

_.J .,oo,_,°,°o:.o°°,t • o • °_.., • • , _. , • ..t o, ° o..,o * ° • ,

d

:

/t

:

i

: 0..

L.............................. ,. ...._ o

O 0 O O 0 0 O O O 0 O O O 0 0 O ID ID _ or/ (_J _ O 01 /,D ID _ ¢v1 CU "=;1" '_" "_" "_ 'q" _1" _ ¢t3 ¢rl -rl

[6ap]

r't LO -,r'_

d

!/ i (..

t"U ,' 1

j. .f .... i..... i.... i.... i

i

i, CJ .!_.

r - _ .............................. .4 ,,-_ !......... i..... i.....

: _-_

e,,,.- • • • • • _, • • ° • • • _0 • _ • •. 0,,. • • _ • ,_.00...o..0...._ .

........ i ................... L ...... o

0 _ 0 _ 0 _ 0 U_ O UD 0 in o L r) o ¢1J ctJ _ .r t

[6ap] [:_as/Oap]

l.O {IJ OJ OJ O4 tO '11"I 4J ',r'l 'q'_ 4J ,-..ll, I.-4 _1 to 0 0 (.0 O rr 11.

0 0 {J 0 0 0 0 0 0 0 _ fJO "¢ (1,1 r= O .T=I ,4-) [6ap] r--I E ttl tt_ .rl

--'_ ......... -7. ........ ._--

: " ..,,,t": L 4..)

.t:: O1 OJ OJ .r"l r'_ cO _J : OJ r-.-I It') tO .j) _O ,H L.._ .¢4 i.= ,-. ._.., ...... : ....... : .............. : .......

O) .r-I 4..1 c" !.

Tt 43

" ! i i !\

...................... ',..'._..,J,:...... i...... , _

...___L .... J.... i ........ ).......

L . . . . " . . . . . . . . L . . . . . . . . ] . . . . . _ 0 O (_ O O O 0 0 0 0 0 0 0 0 O (I) r,D "q" 0J tip tO *¢ or) Od .H ,,H

[Bop] [oas/Oap]

l.l'l II'I ["-_.' I ..... I..... |...... I"-" - 'I+" "+'T - +'I .......

r....t....... _ .... ; ...... r..... ;.....r"-_" 7 ,+-: _ " .

o

/ i i

. . . :/ !

! i : • +, :....._ ....- ......__.,,,..- ..........-....

L. "I

+ + i++i m.

".tll_+ + j + I + i + + +% + t +, II+ + + + oil,, m + _ ,,01lll+.',,+.-ll+o +%,,.._,.,..+,,+.i°++.0_ 's-I + 0 .b,, .,.-ii I,_ 0 o • r-O 4._ • i : : .- .... l,..... : ..... I ..... .. .... ";..... .' ..... :" I ;q

I! !! i _

"_.

• I I + • ' I "Q • I .l" + + • + I," i + + °o "_ + " _'I + + + +I' ' • + +'_i+ + I •

1 0 Co

C_

|++ '',+

,+ Cl.

i i i i

......±.._L ...... L ..... J..... t .... ,.+t ....

L- _.. !.... .,I.. ..... : .... .L .+....,I_..+L.. -..L.,-. +..I o cJ "_ Od 0 a3 _ "_ Od 0 O3 0 0 0 0 0 0 0 0 0 ',-+ _ CX.I ('r'l "q' I_ _ I".

i I i L I 1 1 o ,r4 4J [6a_+' _J Ull i.I') .rl

_J d _

ff[ .....t. ......t......r .....!......r:.,"! ..... !

i- .............. i.......

ID t ,1.1

........ i..... i..... i.... ] ..... i..i'.t.., i

(XI ,r4

! i i i i i ]\

i i ! . i !

m.

_-.... : ..... : ..... i ..... ._ .... : ..... : ..... :._,-.

+- ..... i..... + .... / ..... i...... i.... I

°_'-I o ,ir-I ,-I -_..,..... :. ..... : ..... ,:. ..... 1. .... .: ..... .....++..: ....

4-J : : : : : :,"" : +, "/iiii'+ ..... ...... ..... ......

ff'l I .._..:.._.., .... i ................... : .... i_ _, : I

....J ................. i_...i

L...u ...... L .... u ...... L ...... .t ..... _.... ._ .... J o

0 0 0 0 0 0 0 0 0 UD 0 Lr_ 0 1.5 0 _ 0 1 1 I i I t I I I I 1 1 1 [6op] [°as"I6aD]ORIGINAL PAGE IS OF POOR QUALITY

,! J

_J

t

i / ,/1 I O0 _°o..._ °o,°° .s_ .4°°.._ °o. o°° t i, _..°ti,°o...

C_ °_ ° ° . "_ .... °,,..°..q...° Or--',

"G U

II /.

m L..al 'l / " 4- d I .f,, r- r" / 4_ / C /- ii, i C:} I1; aa .°.. ° ° olo. • .° • _° _. • .oO -.'43. .. .: .... , ....

°°,o°o_°°°0.°°o.°o.°_ > • °.J

o o °

jiJ

i t _._ I t.. _I" I I. I._ I I _I" 0 0 0 0 0 0 O0 0 0 0 0 0 0 0 0 O0 I- r) 0 IZ_ 0 I_ 0 IE3 OD h. rid LrJ '_" ¢rj Od _ 0 [6ep] : : : , , • i , i , (Z} OD

o

C _°°o °°°_.o°°_fo..°.°o,°.

0 C 4_

_ _l : I ] l i_ .i. :i

_ I. I .I ! t ::i :1 0 0 0 0 0 0 0 O0 0 Lq 0 L_ 0 _ 0 LI_ O0 1% I_) IC) _1" Iv) _1 ,v.J 01 I

[6ep] _0s/Oep]

OF FOC'R OU_LITY m-I :t J_ i ° / • LJ O0 IZ) _0 • .IJ _, I i e, ,_ ,. j, ,.se, _° ° o °,.°o_ • • • _, e.. • • f_, oq • ,° _ J_m 0 _i > _g o_ :> U C: r_ to tO .Qi,o.t B > U r_ /, £.9 O rr 0.

_r I. "q' I 1 _ I .. I I :: ,. i n • (J oo 0 0 0 0 O 0 0 0 0 0 0 0 0 0 O0 o r- O0 I_ [O LO _1" or) CU _'_ L_ 0 1_3 0 1_3 0 I11 m.i O %-.I ,l-I m=l %-I m-I m-I _ m-i m -l-I aJ

[6ap]

I-=I E t.

r- O) .l-I

ilii!

R _3 Ni- P 4- C P r-I O it' t_ t- p-, ._._ t.

C JE C z: O R U aJ tO _3 .4,-I _. • •. t _t, • • • .,--., • _,, • --, f _ o, • .,, • - o_ ..... .. .... , ....

im 0 4- 4- ([ : . .

,q. I _.i _ i

_l. j .... i i _!_ __

_ 0 _ O0 OO O UL3 0 0 0 0 0 0 0 O 0 0 t'U t'U I

[6ep] [0es/6ap]

................ _ I.................. I............. * 'r ....... r r (12 tO

t

L o '-4" o o

J

j cu Io

/

i

/

/ !o / / i / ] ./ L.......... .I .............. _i ............. I ........... o 0 LC) 0 ILl 0 L{") I ,rl '_ ¢_I CLI I I l I ORIGiN._L PAGE IS OF POOR QUALITY n- 1:1.

I C .r4 E .w4 L f- C_ .r4 4- • 4- 0 ,-4 c" .w4 c" J= _O ,4J .......... • ..... • ..... ", .... • ..... • ..... _...

_J tO 0 I_ 0 IEJ 0 110 0 IDO I I I I [Gap] ORIGINAL PAGE IS OF POOR QUALITY

APPENDIX 3

APPENDIX 3 The programs description in the attached disk : i. Cho model [21.

a) MATLAB programs.

BLINI.M- Original main program model (including the Cho close loop controller) [2].

COF.M - Original function called by main program (BLINI.M) to calculate seven aerodynamic coefficients [2] ZBLINI.M-The final main program after the changes performed on BLINI.M (see 3.1).

ZCOF2.M- The final function after the changes performed on COF.M (see 3.1).

b) "C" programs ZBLI3.C- The final MATLAB program ZBLINI.M converted to "C" ZCOFS.C- The final MATLAB program ZCOF2.M converted to "C".

ZBLI3.PRJ-"C" project (link) file for ZBLI3.C .

ZCOF3.H- "C" header file for ZCOF3.C (prototype).

ZBLI3.EXE-The final executable program for Cho model.

RES.RES- The output results file (alpa,V,q,teta,dh,t).

ZLCI.M -The program used for graphic program (at MATLAB).

to load RES.RES.

ZPCC5.M -The graphic program called by ZLCI.M.

ZPC51.M -The graphic program called by ZLCI.M.

2. Stalford model [3].

a) MATLAB programs.

ZRUN5.M- The macro running program that give initial values to the model function (ZMAIN5.M) and also graphic program (zpS.m).

-21-

ZMAIN5.M-The function describes nonlinear aircraft

equations in the form to be used by ODE45.M

(integrating routine) called by ZRUN5.M.

ZIN5.M -The function describes input controller called by

ZRUN5.M , the output of the function is the value

of the control (the elevetor angle).

ODE45.M -Integration of a system of ordinary differential

equations called by ZRUN5.M .The function is using

4th and 5th order- Runge-Kutta formulae .

ZP5.M -The graphic program called by ZRUN5.M.

b) "C" proqrams .

ZRUN5.C- The final MATLAB program ZRUN5.M converted to "C" ZMAIN5.C-The final MATLAB program ZMAIN5.M converted to llCl! , ZIN5.C- The final MATLAB program ZIN5.M converted to "C" ODE45.C- The final MATLAB program ODE45.M converted to "C" ZRUN5.PRJ-"C" project (link) file for ZRUN5.C ZMAIN5.H- "C" header file for ZMAIN5.C (prototype).

ZMAIN51.H- "C" header file for ZMAIN5.C (decleration).

ZIN5.H- "C" header file for ZIN5.C (prototype).

ODE45.H- "C" header file for ODE45.C (prototype).

UTIL.C-Utility program for ODE45.C .

UTIL.H- "C" header file for UTIL.C (prototype).

ZRUN5.EXE-The final executable program for Cho model.

RES.RES- The output results file( alfa, V, q, teta, delta_h, tn).

ZLC.M -The program used for graphic program (at MATLAB) to load RES.RES.

ZP5.M -The graphic program called by ZLC.M.

ZP51.M -The graphic program called by ZLC.M.

-22-

APPENDIX B

APPENDIX B Project Publications PROJECT PUBLICATIONS (Supported Wholly or in Part by NASA Grant) ° R.R. Zakrzewski, RoR. Mohler, "On Nonlinear Model Algorithm Controller Design," Proceedings, IFIP Conf. Sys. Modeling and Optimiz., Zurich, 1991 (to appear).

. R.R. Mohler, V. Rajkumar, R.R. Zakrzewski, "Nonlinear Time-Series Based Adaptive Control Applications," Proceedings, IEEE Conf. Decision & Control, Brighton, 1991 (to appear).

, R.R. Mohler, Nonlinear Systems: VoL 2 Applications to Bilinear Control, Prentice Hall, Englewood Cliffs, NJ, 1991.

4.

R.R. Mohler, V. Rajkumar, R.R. Zakrzewski, "On Discrete Nonlinear Self-Tuning Control," Proceedings, Korean Control Conf., Seoul, 1991 (to appear).

Source & rights

Source: ntrs.nasa.gov. Public-domain U.S. Government work (17 USC §105) — freely reproducible.

Permanent URL — we don’t break links.

Report a problem or request removal

Document details

Doc number
NASA-CR-188721
Publisher
NASA (NTRS)
Year
1991
Pages
81
File size
2.1 MB
Chapters
3