4.46667

4.5 | 16 ratings Rate this file 61 Downloads (last 30 days) File Size: 750.18 KB File ID: #11340
image thumbnail

Nonlinear F-16 Fighter Model

by Lars Sonneveldt

 

08 Jun 2006 (Updated 01 Mar 2010)

This .zip file contains the 6 DoF nonlinear dynamic model of an F-16 aircraft.

| Watch this File

File Information
Description

This ZIP file contains the nonlinear model of an
F-16 fighter aircraft in MATLAB/Simulink, Both high-fidelity and low-fidelity aerodynamic data are available, taken from NASA report 1538 and "Aircraft Control and Simulation" by Lewis & Stevens.
A trim function is also included.

F16dyn.c and F16dynam.c contain essentially the same model, only differing in the use of quaternions vs. Euler angles.

F16dynam_complex.c is updated with more general equations of motion so that cg shifts can be taken into account. F16dyn_decoupled.c created by E.R. van Oort contains a model with decoupled left and right ailerons and elevators.

More information can be found inside the script files (Other authors are also credited there). A manual is now also included for a better understanding of aircraft dynamics and the model.

NOTE: all files have been created in MATLAB/Simulink 7.5 R2007b, the simulink .mdl files are compatible with older versions up until 6.0.

Lars Sonneveldt
May, 2008

Required Products Aerospace Blockset
Simulink
MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (21)
20 Jun 2006 Inje Cho  
22 Jun 2006 Peter Verschuur  
26 Aug 2006 milad pasand  
27 Jan 2007 Sikandar Moten  
19 Feb 2007 Jorge Nino  
21 May 2007 james prs

goog

24 May 2007 Nauman Sharjeel  
30 May 2007 roger mason  
28 Jul 2007 li chaoxu  
25 Jan 2008 Girish Sasikumar

This is a highly useful starting point for scholars working on Aero Control problems.

05 Apr 2008 Marcos Cesar Ruggeri

There is an error on line 73

??? Error using ==> feval
Block diagram 'F16_trim' contains no blocks or all blocks are virtual.

Error in ==> C:\MATLAB6p5p1\work\F16model\runF16model.m
On line 73 ==> feval('F16_trim', [], [], [], 'lincompile');
 

03 Jun 2008 Robert Barr  
06 Jun 2008 Paul Ruben  
22 Sep 2008 mou alex  
26 Jan 2009 Lars Sonneveldt  
26 Jan 2009 Lars Sonneveldt  
26 Jan 2009 Eddy

Memory related bug fix incoming soon.

02 Feb 2009 Luigi Giaccari

Maybe after the last update something is missing, I get an error on line 73 on feval command. Or maybe there is a problem on binary files just removed??????????

05 Feb 2009 Lars Sonneveldt

You have to create the binaries yourself, but I have already uploaded a new file that does it before running the model.

02 Dec 2009 Qing

I can not run the model in matlab under linux. Who can help me?

Warning: You are using gcc version "4.4.1-4ubuntu8)". The earliest gcc version supported
         with mex is "4.1". The latest version tested for use with mex is "4.2".
         To download a different version of gcc, visit http://gcc.gnu.org

In file included from F16_dyn.c:134:
aerodata/mexndinterp.c:9: error: expected identifier or ‘(’ before ‘/’ token
aerodata/mexndinterp.c:9: error: stray ‘#’ in program
aerodata/mexndinterp.c:10: error: stray ‘#’ in program
aerodata/mexndinterp.c:15: warning: data definition has no type or storage class
aerodata/mexndinterp.c:93: error: expected declaration specifiers or ‘...’ before ‘ND_INFO’
aerodata/mexndinterp.c: In function ‘getHyperCube’:
aerodata/mexndinterp.c:94: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/mexndinterp.c:94: error: (Each undeclared identifier is reported only once
aerodata/mexndinterp.c:94: error: for each function it appears in.)
aerodata/mexndinterp.c: At top level:
aerodata/mexndinterp.c:144: error: expected declaration specifiers or ‘...’ before ‘ND_INFO’
aerodata/mexndinterp.c: In function ‘getLinIndex’:
aerodata/mexndinterp.c:147: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/mexndinterp.c: At top level:
aerodata/mexndinterp.c:156: error: expected declaration specifiers or ‘...’ before ‘ND_INFO’
aerodata/mexndinterp.c: In function ‘linearInterpolate’:
aerodata/mexndinterp.c:160: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/mexndinterp.c: At top level:
aerodata/mexndinterp.c:215: error: expected declaration specifiers or ‘...’ before ‘ND_INFO’
aerodata/mexndinterp.c: In function ‘interpn’:
aerodata/mexndinterp.c:224: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/mexndinterp.c:228: error: too many arguments to function ‘getHyperCube’
aerodata/mexndinterp.c:230: error: expected expression before ‘/’ token
aerodata/mexndinterp.c:251: error: too many arguments to function ‘getLinIndex’
aerodata/mexndinterp.c:254: error: too many arguments to function ‘linearInterpolate’
In file included from F16_dyn.c:135:
aerodata/hifi_f16_aerodata.c: In function ‘getALPHA1’:
aerodata/hifi_f16_aerodata.c:19: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘getALPHA2’:
aerodata/hifi_f16_aerodata.c:37: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘getBETA1’:
aerodata/hifi_f16_aerodata.c:55: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘getDH1’:
aerodata/hifi_f16_aerodata.c:73: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘getDH2’:
aerodata/hifi_f16_aerodata.c:91: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘getDH3’:
aerodata/hifi_f16_aerodata.c:109: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cx’:
aerodata/hifi_f16_aerodata.c:120: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:120: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:158: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:148: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cz’:
aerodata/hifi_f16_aerodata.c:166: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:166: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:203: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:195: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cm’:
aerodata/hifi_f16_aerodata.c:211: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:211: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:248: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:239: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cy’:
aerodata/hifi_f16_aerodata.c:256: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:256: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:290: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:282: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cn’:
aerodata/hifi_f16_aerodata.c:298: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:298: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:335: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:326: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cl’:
aerodata/hifi_f16_aerodata.c:343: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:343: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:380: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:371: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cx_lef’:
aerodata/hifi_f16_aerodata.c:388: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:388: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:422: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:414: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cz_lef’:
aerodata/hifi_f16_aerodata.c:430: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:430: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:464: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:456: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cm_lef’:
aerodata/hifi_f16_aerodata.c:472: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:472: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:506: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:498: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cy_lef’:
aerodata/hifi_f16_aerodata.c:514: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:514: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:548: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:540: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cn_lef’:
aerodata/hifi_f16_aerodata.c:556: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:556: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:590: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:582: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cl_lef’:
aerodata/hifi_f16_aerodata.c:598: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:598: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:632: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:624: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_CXq’:
aerodata/hifi_f16_aerodata.c:640: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:640: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:671: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:664: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_CZq’:
aerodata/hifi_f16_aerodata.c:679: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:679: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:710: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:703: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_CMq’:
aerodata/hifi_f16_aerodata.c:718: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:718: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:749: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:742: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_CYp’:
aerodata/hifi_f16_aerodata.c:757: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:757: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:788: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:781: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_CYr’:
aerodata/hifi_f16_aerodata.c:796: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:796: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:827: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:820: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_CNr’:
aerodata/hifi_f16_aerodata.c:835: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:835: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:866: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:859: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_CNp’:
aerodata/hifi_f16_aerodata.c:874: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:874: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:905: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:898: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_CLp’:
aerodata/hifi_f16_aerodata.c:913: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:913: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:944: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:937: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_CLr’:
aerodata/hifi_f16_aerodata.c:952: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:952: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:983: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:976: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_delta_CXq_lef’:
aerodata/hifi_f16_aerodata.c:991: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:991: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1022: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1015: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_delta_CYr_lef’:
aerodata/hifi_f16_aerodata.c:1030: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1030: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1061: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1054: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_delta_CYp_lef’:
aerodata/hifi_f16_aerodata.c:1069: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1069: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1100: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1093: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_delta_CZq_lef’:
aerodata/hifi_f16_aerodata.c:1108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1108: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1139: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1132: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_delta_CLr_lef’:
aerodata/hifi_f16_aerodata.c:1147: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1147: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1178: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1171: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_delta_CLp_lef’:
aerodata/hifi_f16_aerodata.c:1186: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1186: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1217: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1210: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_delta_CMq_lef’:
aerodata/hifi_f16_aerodata.c:1225: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1225: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1256: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1249: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_delta_CNr_lef’:
aerodata/hifi_f16_aerodata.c:1264: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1264: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1295: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1288: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_delta_CNp_lef’:
aerodata/hifi_f16_aerodata.c:1303: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1303: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1334: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1327: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cy_r30’:
aerodata/hifi_f16_aerodata.c:1342: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1342: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1376: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1368: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cn_r30’:
aerodata/hifi_f16_aerodata.c:1384: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1384: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1418: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1410: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cl_r30’:
aerodata/hifi_f16_aerodata.c:1426: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1426: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1460: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1452: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cy_a20’:
aerodata/hifi_f16_aerodata.c:1468: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1468: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1502: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1494: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cy_a20_lef’:
aerodata/hifi_f16_aerodata.c:1510: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1510: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1544: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1536: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cn_a20’:
aerodata/hifi_f16_aerodata.c:1552: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1552: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1586: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1578: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cn_a20_lef’:
aerodata/hifi_f16_aerodata.c:1594: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1594: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1628: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1620: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cl_a20’:
aerodata/hifi_f16_aerodata.c:1636: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1636: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1669: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1662: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cl_a20_lef’:
aerodata/hifi_f16_aerodata.c:1677: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1677: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1711: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1703: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_delta_CNbeta’:
aerodata/hifi_f16_aerodata.c:1719: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1719: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1750: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1743: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_delta_CLbeta’:
aerodata/hifi_f16_aerodata.c:1758: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1758: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1789: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1782: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_delta_Cm’:
aerodata/hifi_f16_aerodata.c:1797: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1797: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1828: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1821: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_eta_el’:
aerodata/hifi_f16_aerodata.c:1836: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1836: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1867: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1860: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_delta_Cm_ds’:
aerodata/hifi_f16_aerodata.c:1874: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1874: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1907: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1900: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: At top level:
aerodata/hifi_f16_aerodata.c:1910: error: expected identifier or ‘(’ before ‘/’ token
aerodata/hifi_f16_aerodata.c: In function ‘_Czde’:
aerodata/hifi_f16_aerodata.c:1957: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1957: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:1991: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:1983: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
aerodata/hifi_f16_aerodata.c: In function ‘_Cmde’:
aerodata/hifi_f16_aerodata.c:1998: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ndinfo’
aerodata/hifi_f16_aerodata.c:1998: error: ‘ndinfo’ undeclared (first use in this function)
aerodata/hifi_f16_aerodata.c:2032: error: too many arguments to function ‘interpn’
aerodata/hifi_f16_aerodata.c:2024: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result

    mex: compile of ' "F16_dyn.c"' failed.

??? Error using ==> mex at 221
Unable to complete successfully.

Error in ==> runF16model at 24
mex F16_dyn.c
 
Warning: When displaying: "F16_openloop/Trimmed input", the expression
"imread('aerodata\f16cockpit.jpg')" could not be evaluated. Check that the
parameter entries and variables used in the Initialization command are valid MATLAB
expressions

02 Dec 2009 Jos (10584)

@ Qing: next time try to be a little bit more restrictive in using copy/paste comments ...

Please login to add a comment or rating.
Updates
12 Jun 2006

Additional info

14 Jun 2006

Included a manual

15 Jun 2006

Updated manual

16 Jun 2006

Some errors in the lofi aerodata fixed

06 Jun 2008

Removed a memory leak, quaternions better defined, all .mdl files saved compatible with Matlab 6.0 and newer versions.
Added 2 new F-16 models

17 Jun 2008

new zip file

26 Jan 2009

bug fixes

27 Jan 2009

repacked as zip

29 Jan 2009

.dll files removed, not allowed anymore @ mathworks

30 Jan 2009

removed all binaries

04 Feb 2009

bug fix

05 Feb 2009

another minor bugfix

05 Feb 2009

correct file

09 Feb 2009

minor bug fix

01 Mar 2010

fixed ISA model, new manual

Tag Activity for this File
Tag Applied By Date/Time
aerospace Lars Sonneveldt 22 Oct 2008 08:28:14
aeronautics Lars Sonneveldt 22 Oct 2008 08:28:14
aerodef Lars Sonneveldt 22 Oct 2008 08:28:14
aircraft Lars Sonneveldt 22 Oct 2008 08:28:14
f16 Lars Sonneveldt 22 Oct 2008 08:28:14
flight dynamics Lars Sonneveldt 22 Oct 2008 08:28:14
aerocraft yuli zhang 04 May 2011 06:18:43

Contact us at files@mathworks.com