Setting/updating atmospheric properties #306
Replies: 5 comments 4 replies
-
Take a look at this set of properties, which all have setters and getters. jsbsim/src/models/atmosphere/FGStandardAtmosphere.cpp Lines 671 to 698 in 76411ec Then the following set only have getters. jsbsim/src/models/FGAtmosphere.cpp Lines 271 to 286 in 76411ec |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response! So despite jsbsim/src/models/FGAtmosphere.cpp Lines 107 to 131 in 76411ec |
Beta Was this translation helpful? Give feedback.
-
I guess so, I didn't spot those. I've only used If they still don't offer the level of control you require then I guess your other option is to implement your own atmosphere model. In addition to the standard atmosphere model you'll see there are 2 other atmosphere models currently in JSBSim, MSIS and Mars. |
Beta Was this translation helpful? Give feedback.
-
Properties As @seanmcleod mentioned, the temperature can be modified by the following properties:
When fed with these 2 properties, JSBSim assumes the ISA1976 atmospheric model must be used to assess the pressure and temperature. |
Beta Was this translation helpful? Give feedback.
-
This issue has been moved to "Discussions". Now that this new feature is available in GitHub, it has been decided to move issues related to support requests and questions to "Discussions" and restrict "Issues" to bugs and feature requests. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I've been working on developing a good way to dynamically set and update atmospheric properties through the Python API, but have been running into a couple of issues.
It seems that at least some of the documented atmospheric properties in JSBSim (see here) might be immutable, since attempts to set new a value for atmospheric properties don't seem to actually update the value. Here's an excerpt of how I'm attempting to set temperature, for example:
Are these atmospheric properties intended to accept user modification or are they meant to be immutable?
In addition, I'd also like to be able to set more properties than what I've come across in the sourceforge documentation, namely things like gravity, wind speed, etc, and eventually integrate global reference atmospheric models like the Venus-GRAM into my use case, but the properties listed don't seem to include these. Is there a separate reference for atmospheric properties that I'm overlooking or is this the full list?
Thanks again for all of your work on this project!
Beta Was this translation helpful? Give feedback.
All reactions