Skip to content

Including Atmospheric Winds in JSBSim Simulation via Python #1088

Answered by seanmcleod
viniciusrottolo asked this question in Q&A
Discussion options

You must be logged in to vote

So for my testing I took the script 737_cruise.xml and noted the trim results, then I added the following to execute just before the trim operation.

	<event name="Set wind">
		<condition> simulation/sim-time-sec le 0.1 </condition>
		<set name="ic/vw-mag-fps" value="10"/>
		<set name="ic/vw-dir-deg" value="30"/>
		<notify/>
	</event>

And then compared the trim results with wind present and noted that the trim results are slightly different, as well as most of the properties being reported every 5 seconds.

I also had the atmosphere/wind-mag-fps and atmosphere/psiw-rad properties reported every 5s to confirm that they matched the initial wind conditions I'd set, i.e. that they weren't reset…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@viniciusrottolo
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@viniciusrottolo
Comment options

Answer selected by viniciusrottolo
Comment options

You must be logged in to vote
1 reply
@viniciusrottolo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants