Munition on Aircraft #1273
-
Is there an example for munition test (only cpp jsbsim)? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What are your requirements after the release? Simply that the mass and drag of the aircraft change, or do you want to spawn another FDM to model the trajectory of the munition? |
Beta Was this translation helpful? Give feedback.
-
I took a brief look at FlightGear in terms of how they handle munitions, for example see -https://wiki.flightgear.org/Scripted_AI_Objects#Missiles. So they don't spawn another JSBSim FDM, rather it looks like they run Nasal based FDMs for the missiles. There are some references to https://github.com/search?q=repo%3AJSBSim-Team%2Fjsbsim+ChildFDM&type=code But also this comment saying it's not yet supported. Lines 1039 to 1042 in f794e04 So for now, if you want to go the route of spawning another FDM for the munition etc. and you mentioned
I'd suggest something along these lines:
|
Beta Was this translation helpful? Give feedback.
I took a brief look at FlightGear in terms of how they handle munitions, for example see -https://wiki.flightgear.org/Scripted_AI_Objects#Missiles. So they don't spawn another JSBSim FDM, rather it looks like they run Nasal based FDMs for the missiles.
There are some references to
ChildFDM
in the current JSBSim source code:https://github.com/search?q=repo%3AJSBSim-Team%2Fjsbsim+ChildFDM&type=code
But also this comment saying it's not yet supported.
jsbsim/src/FGFDMExec.cpp
Lines 1039 to 1042 in f794e04