Jean-BaptisteBouvier / ADMIRE

Codes for the ADMIRE fighter jet model
https://www.foi.se/rest-api/report/FOI-R--1624--SE
0 stars 1 forks source link

Trimming runs into an error #1

Open GoofyPy opened 3 months ago

GoofyPy commented 3 months ago

When I run the script admtrim_sl, I get the following error:

admtrim_sl

Mach number [-] : 2 Altitude [m] : 2000 Error using admtrim_sl (line 19) Error due to multiple causes. Caused by: Error using admtrim_sl (line 19) Error in S-function 'get_x0u0/u0': S-Function 'fcsu0' does not exist Error using admtrim_sl (line 19) Error in S-function 'get_x0u0/x0': S-Function 'fcsx0' does not exist

GoofyPy commented 3 months ago

seems like I have to create the mex functions first which works for all but machno.c:

mex machno.c Building with 'MinGW64 Compiler (C)'. Error using mex C:\tulrfsd\01_Personal\Admirer4.1\fcs\c\machno.c:23:15: error: 'ssGetRWork' declared as function returning an array

define a1 ssGetRWork(S)[6]

^ C:\tulrfsd\01_Personal\Admirer4.1\fcs\c\machno.c:27:15: error: 'ssGetRWork' declared as function returning an array

define a2 ssGetRWork(S)[10]

^ C:\tulrfsd\01_Personal\Admirer4.1\fcs\c\machno.c:27:15: error: redefinition of parameter 'ssGetRWork' C:\tulrfsd\01_Personal\Admirer4.1\fcs\c\machno.c:23:15: note: previous definition of 'ssGetRWork' was here

define a1 ssGetRWork(S)[6]

^