hassata Posted June 5, 2005 Posted June 5, 2005 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]
AJS Posted June 5, 2005 Posted June 5, 2005 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.
hassata Posted June 5, 2005 Author Posted June 5, 2005 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 Olgerd Posted June 5, 2005 ED Team Posted June 5, 2005 Visual Basic 6 - Basic programming language version. ;) [sIGPIC][/sIGPIC] К чему стадам дары свободы? Их должно резать или стричь. Наследство их из рода в роды Ярмо с гремушками да бич.
AJS Posted June 5, 2005 Posted June 5, 2005 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
hassata Posted June 6, 2005 Author Posted June 6, 2005 Sounds excellent. If your feel like it, you can upload to lomacfiles, as I'm sure many would be interested. [sIGPIC][/sIGPIC]
Recommended Posts