Replies: 3 comments 8 replies
-
Okay, so you want to vary the wind with altitude, however the wind parameters don't take altitude as an argument. jsbsim/src/models/atmosphere/FGWinds.cpp Lines 497 to 506 in c867cc7 So you would need to have an external process that monitored the aircraft's altitude and then updated the wind as the altitude changed via the available wind properties. If you're willing to modify the aircraft's FDM file you could potentially add a function which used the aircraft's altitude multiplied by some factor to update the wind property. |
Beta Was this translation helpful? Give feedback.
-
This is what I was suggesting if you're happy to modify each aircraft's FDM. <aerodynamics>
<function name="aero/function/windcalc" copyto="atmosphere/wind-mag-fps">
<description>Varying wind with altitude</description>
<table>
<independentVar>position/h-sl-ft</independentVar>
<tableData>
0 0
40000 40
</tableData>
</table>
</function> |
Beta Was this translation helpful? Give feedback.
-
I've opened a new discussion - #1108 about adding support for functions in script files. |
Beta Was this translation helpful? Give feedback.
-
I am looking for a way to add wind in one direction (say top to down) varying with height. I went through threads where similar thing has been discussed, but couldn't find a quick/easy way to include wind through script. @seanmcleod @bcoconni could you help me with this.
Note : I am using Ardupilot SITL for simulation, it allows to set SIM_WIND_SPD parameter, I could see the effect as well in mission planner. I am not sure whether this allows JSBSim to get info of wind or not.
Beta Was this translation helpful? Give feedback.
All reactions