Jump to content
The simFlight Network Forums

magicgerd

Members
  • Posts

    9
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Germany

magicgerd's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi Pete, I've been thinking about the problem for a while. Now I noticed something. When I open the FS weather-dialogue and set 5 wind-layers with 0,1,2,3,4 turbulences and confirm with "OK", FS stores these values somewhere in memory. I think you will agree until here. Now I try to read these values with FSUIPC and I get wrong values, like 0,0,1,2,4 That means, FS stored false values in memory, because FSUIPC reads the values stored by FS. Am I right until now ?? But now the strange thing: When I reopen the FS weather-dialogue FS will show the correct values exactly like I entered before. How can Fs know about these correct values when FS stored them incorrect previously ?? The correct values must be stored at another location. What do you think about my theorie ?? Greetings Gerd
  2. Hi Pete, I do not write anything, I just read the weather. I made the settings via FS weather settings only. regards Gerd
  3. Hi Pete, I did the following: I set 5 Windlayers in FS using global weather. 1. TOP: 2000 ft ~ Windspeed: 10 kts ~ No TURB 2. TOP: 5000 ft ~ Windspeed: 20 kts ~ TURB light(1) 3. TOP: 6000 ft ~ Windspeed: 30 kts ~ TURB: medium(2) 4. TOP: 7000 ft ~ Windspeed: 40 kts ~ TURB: heavy(3) 5. TOP: 8000 ft ~ Windspeed: 50 kts ~ TURB: x-treme(4) Then i did the same, using Hahn weather station. Here is the log for Global settings: 8679703 Clear All Weather requested: external weather discarded 8680047 >Change: surface wind: to alt=2000ft AGL, dir=0T, vel=10.0, gust=0.0, turb=0, shear=0, var=0.0, Flags=0, AMSL=3560ft 8680047 >Change: wind layer 0: to alt=5000ft AMSL, dir=1T, vel=20.0, gust=0.0, turb=1, shear=0, var=0.0 8680047 >Change: wind layer 1: to alt=6000ft AMSL, dir=0T, vel=30.0, gust=0.0, turb=1, shear=0, var=0.0 8680047 >Change: wind layer 2: to alt=7000ft AMSL, dir=0T, vel=40.0, gust=0.0, turb=2, shear=0, var=0.0 8680047 >Change: wind layer 3: to alt=8000ft AMSL, dir=0T, vel=50.0, gust=0.0, turb=3, shear=0, var=0.0 8680047 >Change: Visibility[0]: range=70.0sm (112654m), from=0ft, to=15000ft 8680047 Results: Visibility[0]: range=70.0sm (112654m), from=0ft, to=15000ft 8680047 Results: FS98 Wind0: ground (1247ft) to 2316ft AGL, dir 1M, vel 10, gust 0, turb 0 8680047 Results: FS98 Wind1: 3560ft to 5000ft AMSL, dir=0T, vel 20, gust 0, turb 64 8680047 Results: FS98 Wind2: 5000ft to 6000ft AMSL, dir=0T, vel 30, gust 0, turb 64 8680047 Results: FS98 Wind3: 6000ft to 7000ft AMSL, dir=0T, vel 40, gust 0, turb 128 And here the same setting for Hahn weather station: 8858843 Clearing All Weather 8858875 Weather cleared by user action 8858875 External weather discarded 8858875 >Change: surface wind: to alt=2000ft AGL, dir=0T, vel=0.0, gust=0.0, turb=0, shear=0, var=0.0, Flags=0, AMSL=3546ft 8858875 >Change: No upper wind layers 8858875 >Change: Visibility[0]: range=70.0sm (112654m), from=-4920ft, to=15000ft 8858875 Results: Visibility[0]: range=70.0sm (112654m), from=-4920ft, to=15000ft 8858875 Results: FS98 Wind0: ground (1227ft) to 2320ft AGL, dir 0M, vel 0, gust 0, turb 0 8858875 Results: FS98 Wind1: 3550ft to 215010ft AMSL, dir=0T, vel 0, gust 0, turb 0 8858875 Results: FS98 Wind2: 0ft to 0ft AMSL, dir=0T, vel 0, gust 0, turb 0 8858875 Results: FS98 Wind3: 0ft to 0ft AMSL, dir=0T, vel 0, gust 0, turb 0 8916640 Results: FS98 AmbientWind at PlaneAlt=8507: dir 0T, vel 40 8916640 >Change: surface wind: to alt=1146ft AGL, dir=0T, vel=5.2, gust=0.0, turb=0, shear=0, var=0.0, Flags=0, AMSL=2690ft 8916640 >Change: wind layer 0: to alt=5000ft AMSL, dir=0T, vel=10.4, gust=0.0, turb=0, shear=0, var=0.0 8916640 >Change: wind layer 1: to alt=6000ft AMSL, dir=0T, vel=15.6, gust=0.0, turb=0, shear=0, var=0.0 8916640 >Change: wind layer 2: to alt=7000ft AMSL, dir=0T, vel=20.9, gust=0.0, turb=1, shear=0, var=0.0 8916640 >Change: wind layer 3: to alt=8000ft AMSL, dir=0T, vel=26.1, gust=0.0, turb=1, shear=0, var=0.0 8916640 >Change: Visibility[0]: range=70.0sm (112654m), from=1640ft, to=15000ft 8916640 Results: Visibility[0]: range=70.0sm (112654m), from=1640ft, to=15000ft 8916640 Results: FS98 Wind0: ground (1227ft) to 1460ft AGL, dir 1M, vel 5, gust 0, turb 0 8916640 Results: FS98 Wind1: 2690ft to 5000ft AMSL, dir=0T, vel 10, gust 0, turb 0 8916640 Results: FS98 Wind2: 5000ft to 6000ft AMSL, dir=0T, vel 16, gust 0, turb 0 8916640 Results: FS98 Wind3: 6000ft to 7000ft AMSL, dir=0T, vel 21, gust 0, turb 64 Regards Gerd
  4. OK, I will use the log-option and send you the log. Maybe tomorrow, 'cause today I will have not enough time to do so. Gerd
  5. What do you exactly mean with "logging" ?? I'm usin V 3.99
  6. So I suspect it is FSX. I'm not using FSX but FS9. So it can't be FSX. Gerd
  7. Hello Pete, here's still a problem. I changed my code and now use the NWI. I'm intersted in the turbulences at AC. I read 384 Bytes from &HC0FC using a data structure to get the 24 wind-layers. That works perfect. But my problem is the following: When I set global weather in FS, the turbulences are shown correct : 0 for none, 1 for few, 2 for medium, 3 for heavy and 4 for x-treme. To check it out, I set five wind-layers in FS, setting each to a different value. When I now slew through the layers everything is perfect. But when I set local weather for a special weather-station, the values are incorrect. Example: I place my AC to Frankfurt-Hahn airport and set the 5 layers as described above, setting it to the Hahn weather station. Now the strange thing is: No turb returns 0 ~ light turb returns 0 ~ medium turb returns 1 ~ heavy turb returns 2 ~ x-treme turb returns 3 As you see, all values are minus 1. The other values like wind speed a.s.o are OK. But only using local weather. Using global weather, everything is correct. Now my question: am I doing something wrong or can it be possible, that there is a bug in FSUIPC (I really cant believe that :smile:) ??? Please give me a help. Regards Gerd
  8. Hi Pete, thx for the rapid reply. I tried to define the structure I need (I' just interested in turbulences at AC). But what is the read syntx now exactly. I tried the following: ####################################################### Dim dwResult As Long, x As AdvWind If FSUIPC_Read(AW_GETWAT, 16, VarPtr(x), dwResult) Then FSUIPC_Process (dwResult) ####################################################### But the result I expected is not what I get. Althoug there are no turbulences ist shows a value of "2". Here's my definition in VB: ----------------------------------------------------------------------------------------- Public Const AW_GETWAT = &H400000 '// Read set Wind at Type AdvWind Len As Integer '; // Length of this structure in bytes (16) nAfter As Integer '; // Number of layers above this one UpperAlt As Integer '; // Metres Speed As Integer '; // Knots Gust As Integer '; // Max gust speed, knots Direction As Integer '; // usual 65536 = 360 units Turbulence As Integer '; // 0-4 Shear As Integer '; // 0-3 End Type ---------------------------------------------------------------------------------------- What am I doing wrong ??? Thanks in advance Gerd
  9. Hi Programmers, I hope, anyone of you can help me. I want to use the newweather interface for FS9 within VB6. But I have no idea, how to do. The newweather.h is for C-language. How can I get access to it ? ( I only need ro read all wind layers for now) I hope, someone can help me. Greetings Gerd
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.