Modifying inertia and cg #582
Replies: 3 comments 2 replies
-
Currently JSBSim only supports numbers and not properties for the entries you're interested in. jsbsim/src/models/FGMassBalance.h Lines 83 to 112 in 8852bf5 You could edit your aircraft's xml file and replace the number with a variable name, e.g. |
Beta Was this translation helpful? Give feedback.
-
Yep, take a look at the source code and you'll see that all the properties are read-only. jsbsim/src/models/FGMassBalance.cpp Lines 397 to 427 in 8852bf5 Hence my suggestion that you write some code to do a template match search and replace in your aircraft config file. One option that does allow you to write/update mass properties is the support for jsbsim/src/models/FGMassBalance.cpp Lines 431 to 448 in 8852bf5 |
Beta Was this translation helpful? Give feedback.
-
@aregis74 have you taken a look at the source code? |
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 everyone,
I would like to run my model for several CGs and mass' configuration.
Is possible to create a variable in XML that defines the inertia and manipulate it via Python?
Beta Was this translation helpful? Give feedback.
All reactions