Open wuuuiYan opened 1 year ago
Hi, thank you very much for the bug report.
I do not experience the problem. I suspect that the error occurs from Matlab version 2020b (I use 2018b).
I suspect that the error occurs because a variable was named like the Matlab function width
.
I have changed that in the LADAC main branch.
Could you update LADAC and check if the error has been fixed?
Thanks a lot and best regards.
I'm glad to hear from you, This to me extremely important! But there are still errors
fuselageUnitTest/fuselageLibTest 中出现错误并且未运行完毕。
--------
错误 ID:
--------
'MATLAB:MException:MultipleErrors'
-----------
错误详细信息:
-----------
错误使用 fuselage_lib_example_init (第 22 行)
Error due to multiple causes.
出错 run (第 91 行)
evalin('caller', strcat(script, ';'));
出错 fuselageUnitTest>fuselageLibTest (第 40 行)
run('fuselage_lib_example_init')
原因:
错误使用 fuselage_lib_example_init (第 22 行)
Simulink cannot determine sizes and/or types of the outputs for block 'fuselage_lib_example/fuselage rigid/Fuselage
Core1/Fuselage Core' due to errors in the block body, or limitations of the underlying analysis. The errors might be
inaccurate. Fix the indicated errors, or explicitly specify sizes and/or types for all block outputs.
错误使用 fuselage_lib_example_init (第 22 行)
Error in port widths or dimensions. '输出端口 1' of 'fuselage_lib_example/fuselage rigid/Fuselage Core1/Fuselage
Core/atmosphere' is a one dimensional vector with 1 elements.
I suspect that the error comes from the fact that in file fuselage_lib_example
instead of the LADAC Atmosphere block the Atmosphere block from the Aerospace Blockset (both are called "ISA Atmosphere Model") is used.
Actually, it should not be a problem that both blocks have the same name, because the Simulink file also stores the origin of the block.
Could you run again the check_ladac
function, then open the Simulink model fuselage_lib_example
(aerodynamics/fuselage/fuselage_lib_example) and send a screenshot of the model?
Is the file complete? I run the
check_ladac.m
, but unfortunately MATLAB errors are reported as followingfuselageUnitTest/fuselageExampleScriptTest
andfuselageUnitTest/fuselageLibTest
have errors and has not finished running.