Jump to content

Recommended Posts

Posted

Hi:

 

In real world, I believe when you get wind direction (e.g. 240 at 10 Knots) it means wind is blowing FROM 240. In LOMAC, wind direction (as set in mission and related in the briefing is TO (e.g. 240@10 would mean wind is blowing to 240).

 

Could someone please confirm?

 

Thanks

[sIGPIC][/sIGPIC]

Posted

That´s true !

 

If you set the wind direction TO 179 in the briefing the wind will blow FROM 359. However in the Lomac file the value will be saved as 181 (if you want to code something).

 

If Val(Mid(Metar2, 1, 3)) > 179 Then

helper = Abs(Val(Mid(Metar2, 1, 3) - 180))

getWindDirection = CStr(Abs(helper - 360))

Else

helper = Abs(Val(Mid(Metar2, 1, 3) + 180))

getWindDirection = CStr(Abs(helper - 360))

End If

 

Part of my getWindDirection function in VB6.

 

That´s the way it works in 1.02 - Didn´t get 1.1 yet.

Posted

THanks. You are in for a treat when you get FC-it really makes this a new, complete sim-at least for me. What's VB6?

[sIGPIC][/sIGPIC]

  • ED Team
Posted

Visual Basic 6 - Basic programming language version. ;)

[sIGPIC][/sIGPIC]

 

К чему стадам дары свободы?

Их должно резать или стричь.

Наследство их из рода в роды

Ярмо с гремушками да бич.

Posted

Yeah i know *sigh*. Even though you can do lots of stuff with it. Quick and dirty. ;)

 

I wanted real weather like in FS 2004 so i coded something that downloads METAR data from the internet and creates a mission file with the input. I could have done that manually but hey i´m way too lazy. That´s why programming languages have been invented, right ?

 

It´s just that i did not have much time and motivation anymore and it´s usability is still very limited but it works.

 

I´m flying with real weather from UKFF (Simferopol). Mainly to make the daily bridge flying session more interesting :D

  • Recently Browsing   0 members

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