Cannot Get FGWind* pointer in JSBSim 1.1.11 #606
Replies: 6 comments 1 reply
-
But have you included the header file |
Beta Was this translation helpful? Give feedback.
-
Thank you so much, It 's fixed! |
Beta Was this translation helpful? Give feedback.
-
@BadboyIntheLoop In case you come up with an actual improvement of the JSBSim/Matlab/Simulink interface it would be nice if that could be incorporated into the official codebase |
Beta Was this translation helpful? Give feedback.
-
This topic has been moved to JSBSim Discussions as per the issue template statement: Support for this topic will therefore continue within this discussion. Thanks for your understanding. |
Beta Was this translation helpful? Give feedback.
-
I get this error. Can someone please help
ERROR:
|
Beta Was this translation helpful? Give feedback.
-
Hmm, instead of: _fg_winds = std::make_unique<JSBSim::FGWinds>(_fdmexec); You should probably be calling the std::shared_ptr<FGWinds> FGFDMExec::GetWinds(void) const
{
return static_pointer_cast<FGWinds>(Models[eWinds]);
} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello the Pro,
I wanna change the default codes that interface with matlab (JSBSimInterface and JSBSim_SFunction) in order to get/set more variables! For get/set wind parameter, I declared like as following in JSBSimInterface.h:
FGWinds *winds;
And using it in source file JSBSimInterface.cpp:
fdmExec = new FGFDMExec;
winds = fdmExec->GetWinds()
I'm using MSVC C++ 2019 compiler but during compiling I get an error:
I actually dont why. Clearly, I declared it fully though! Pls help me at this situation. So many thanks!!!
Beta Was this translation helpful? Give feedback.
All reactions