Replies: 2 comments 4 replies
-
In your |
Beta Was this translation helpful? Give feedback.
-
Out of interest, any particular reason you're using: fdm.set_property_value('ic/vw-north-fps', 0.0)
# Rather than
fdm['ic/vw-north-fps'] = 0.0 Also a number that you set are actually read-only. PropertyManager->Tie("velocities/u-fps", this, eU, (PMF)&FGPropagate::GetUVW);
PropertyManager->Tie("velocities/v-fps", this, eV, (PMF)&FGPropagate::GetUVW);
PropertyManager->Tie("velocities/w-fps", this, eW, (PMF)&FGPropagate::GetUVW); Note the >>> fdm.query_property_catalog('velocities/u-fps')
['velocities/u-fps (R)']
I doubt JSBSim supports this officially. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I still am fiddling around with the python wrapper. I try to create a very simple scenario. The simulation should start at a resting state, then I would like to perform some inputs programmatically in order to observe the movements, for example starting the engine and throttle up in order to see a forward movement. However, I get some very weird velocities and accelerations at the beginning. I condensed the issue into a short testing script which outputs some basic information about the aircraft every 500 frames:
The script outputs this table:
The engine starts at frame 5000. But way before that the aircraft already experiences huge accelerations. My first guess was, that the aircraft is glitching out of the geod, so I tried to initialize with an altitude of 4.305 (I took the value from a reset file), see line 29. But still no luck, even with higher / lower values. After a while the aircraft seems to rest and it behaves reasonable after the engine starts (I assume a stall at frame 8500).
Does anyone have an idea?
Beta Was this translation helpful? Give feedback.
All reactions