Jump to content

getWind/getWindWithTurbulence giving wrong wind speed?


Recommended Posts

Posted (edited)

So I have the wind setup as follows:

ME_Wind.jpg

I know that in the backend everything is in metres, so DCS is doing a conversion from 14kts to metres.

What I get out of my code is a wind velocity of 11mps = 22kts.

So where is the extra 8kts coming from?

  local strength = math.ceil(math.sqrt( ( windVector.x ) ^2 + ( windVector.z ) ^2 ) ) -- result will be in metres. Need to convert to knots
  local knots    = math.ceil( strength * 1.94384449 ) -- convert metres per second into knots

Have I got the maths wrong or is something wonky going on in the back end? 

Edited by Elphaba
Posted

I worked it out.

These heights in the mission editor are based on SEA LEVEL... not ABOVE GROUND LEVEL.

Therefore at the bases I was spawning into, I was getting the wind at 1550 feet... which was about 28kts... as you can see from the above screenshot.

So I hope this helps someone else, but due to the lack of useful labels/info either in the docs or the mission editor, the mission editor winds are above SEA LEVEL and not above the ground. So be careful when you set this as in Nevada for example your 'upper winds' start to become your ground winds... 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...