Jump to content
The simFlight Network Forums

[FSX] NW_SET_PENDING


Recommended Posts

My problem is.

NW_SET_PENDING works in FSX like NW_SET.

FSX:

   283594 NW_SET weather command received, ICAO=EBFS
   283594 >NewSet:  **** New Weather being set: ICAO=EBFS (Dyn=0)
   283594 >NewSet:  Pressure=1022.0, Drift=0.0
   283594 >NewSet:  Visibility[0]: range=0.2sm (338m), from=830ft, to=2020ft
   283594 >NewSet:  Visibility[1]: range=1.2sm (1947m), from=2020ft, to=5300ft
   283594 >NewSet:  Visibility[2]: range=93.1sm (149766m), from=5300ft, to=108270ft
   283594 >NewSet:  Temperature[0]: alt=0ft, Day=-5 C, NightVar=2 C, DewPt=-5 C

FS2004:

168609 NW_SET_PENDING weather command received, ICAO=ETNG 
   168844 >NewSet:  **** New Weather [4] being set: ICAO=ETNG (Dyn=0)
   168844 >NewSet:  Pressure=1025.0, Drift=0.0
   168844 >NewSet:  Visibility: range=0.9sm (1513m), from=200ft, to=1680ft
   168844 >NewSet:  Temperature[0]: alt=0ft, Day=-3 C, NightVar=2 C, DewPt=-4 C
   168844 >NewSet:  Temperature[1]: alt=3000ft, Day=-3 C, NightVar=2 C, DewPt=-4 C
   168844 >NewSet:  Temperature[2]: alt=5000ft, Day=1 C, NightVar=0 C, DewPt=-18 C

Link to comment
Share on other sites

My problem is.

NW_SET_PENDING works in FSX like NW_SET.

Checking the code I see that in FSX only there's a special change which treats the very first "NW_SET_PENDING" as an "NW_SET". It should change after the first NW_ACTIVATE.

I don't now remember why this was necessary -- something to do with how the weather system works in SimConnect. The weather setting code hasn't been changed for nearly 5 years now and I am afraid I don't remember the technicalities.

Is there an NW_ACTIVATE further down the log? If so, aren't there any NW_SET_PENDING's logged thereafter?

I think the idea is to set the complete weather normally initially, rather than delay it, but then do the delayed implementation subsequently, whilst the user is actively flying.

Mind you, a lot of the value of the PENDING/ACTIVATE system is lost in SimConnect because of its delayed morphng mechanism in any case. In FS9 FSUIPC was actualy overwriting the current weather settings. In FSX the timing is all controlled by SimConnect. It is most out of FSUIPC's control.

Regards

Pete

Link to comment
Share on other sites

Is there an NW_ACTIVATE further down the log? If so, aren't there any NW_SET_PENDING's logged thereafter?

Yes, end of "NW_SET_PENDING" weather data for all airport.

In both log files. FSX and FS2004

197969 NW_SET_PENDING weather command received, ICAO=ETNU 
   198094 >NewSet:  **** New Weather [4] being set: ICAO=ETNU (Dyn=0)
   198094 >NewSet:  Pressure=1025.0, Drift=0.0
   198094 >NewSet:  Visibility: range=0.1sm (193m), from=130ft, to=1210ft
   198094 >NewSet:  Temperature[0]: alt=0ft, Day=-5 C, NightVar=2 C, DewPt=-5 C
   198094 >NewSet:  Temperature[1]: alt=3000ft, Day=-5 C, NightVar=2 C, DewPt=-5 C
   198094 >NewSet:  Temperature[2]: alt=5000ft, Day=-3 C, NightVar=0 C, DewPt=-35 C
   198094 >NewSet:  Temperature[3]: alt=10000ft, Day=-7 C, NightVar=0 C, DewPt=-22 C
   198094 >NewSet:  Temperature[4]: alt=14000ft, Day=-7 C, NightVar=0 C, DewPt=-22 C
   198094 >NewSet:  Temperature[5]: alt=18000ft, Day=-23 C, NightVar=0 C, DewPt=-29 C
   198094 >NewSet:  Temperature[6]: alt=21000ft, Day=-23 C, NightVar=0 C, DewPt=-29 C
   198094 >NewSet:  Temperature[7]: alt=24000ft, Day=-34 C, NightVar=0 C, DewPt=-42 C
   198094 >NewSet:  Temperature[8]: alt=27000ft, Day=-34 C, NightVar=0 C, DewPt=-42 C
   198094 >NewSet:  Temperature[9]: alt=30000ft, Day=-51 C, NightVar=0 C, DewPt=-58 C
   198094 >NewSet:  Temperature[10]: alt=34000ft, Day=-60 C, NightVar=0 C, DewPt=-66 C
   198094 >NewSet:  Temperature[11]: alt=39000ft, Day=-67 C, NightVar=0 C, DewPt=-72 C
   198094 >NewSet:  Temperature[12]: alt=45000ft, Day=-58 C, NightVar=0 C, DewPt=-87 C
   198094 >NewSet:  Temperature[13]: alt=53000ft, Day=-59 C, NightVar=0 C, DewPt=-90 C
   198094 >NewSet:  Temperature[14]: alt=80000ft, Day=-59 C, NightVar=0 C, DewPt=-90 C
   198094 >NewSet:  Surface wind: to alt=220ft AMSL, dir=230T, vel=3.99, gust=5.0, turb=1, shear=0, var=20.0
   198094 >NewSet:  Wind layer 1: to alt=1230ft AMSL, dir=230T, vel=6.0, gust=5.0, turb=1, shear=0, var=0.0
   198094 >NewSet:  Wind layer 2: to alt=3000ft AMSL, dir=230T, vel=6.0, gust=5.0, turb=1, shear=0, var=0.0
   198094 >NewSet:  Wind layer 3: to alt=5000ft AMSL, dir=260T, vel=7.0, gust=0.0, turb=0, shear=0, var=0.0
   198094 >NewSet:  Wind layer 4: to alt=10000ft AMSL, dir=290T, vel=9.0, gust=0.0, turb=0, shear=0, var=0.0
   198094 >NewSet:  Wind layer 5: to alt=14000ft AMSL, dir=290T, vel=9.0, gust=0.0, turb=0, shear=0, var=0.0
   198094 >NewSet:  Wind layer 6: to alt=18000ft AMSL, dir=260T, vel=24.0, gust=0.0, turb=0, shear=0, var=0.0
   198094 >NewSet:  Wind layer 7: to alt=21000ft AMSL, dir=260T, vel=24.0, gust=0.0, turb=0, shear=0, var=0.0
   198094 >NewSet:  Wind layer 8: to alt=24000ft AMSL, dir=290T, vel=12.0, gust=0.0, turb=0, shear=0, var=0.0
   198094 >NewSet:  Wind layer 9: to alt=27000ft AMSL, dir=290T, vel=12.0, gust=0.0, turb=0, shear=0, var=0.0
   198094 >NewSet:  Wind layer 10: to alt=30000ft AMSL, dir=320T, vel=12.0, gust=0.0, turb=0, shear=0, var=0.0
   198094 >NewSet:  Wind layer 11: to alt=34000ft AMSL, dir=290T, vel=5.0, gust=0.0, turb=0, shear=0, var=0.0
   198094 >NewSet:  Wind layer 12: to alt=39000ft AMSL, dir=260T, vel=7.0, gust=0.0, turb=0, shear=0, var=0.0
   198094 >NewSet:  Wind layer 13: to alt=45000ft AMSL, dir=290T, vel=12.0, gust=0.0, turb=0, shear=0, var=0.0
   198094 >NewSet:  Wind layer 14: to alt=53000ft AMSL, dir=320T, vel=22.0, gust=0.0, turb=0, shear=0, var=0.0
   198094 >NewSet:  Wind layer 15: to alt=80000ft AMSL, dir=320T, vel=22.0, gust=0.0, turb=0, shear=0, var=0.0
   198094 >NewSet:  Cloud[0]: type=9, from 226ft to 1870ft (+/- 330ft), cover=8, turb=1, topshape=0
   198094 >NewSet:                      Precip=0, base=210ft, rate=0, icing=1
   198094 >NewSet:  **** End of New Weather details for ICAO=ETNU
   198203 NW_ACTIVATE weather command received

- Write "NW_CLEAR"

- write "NW_SET_PENDING with weather"

- write "NW_SET_PENDING with weather"

- ....

- ....

- write "NW_ACTIVATE"

Should I write the Weather in FSX with SimConnect?

Link to comment
Share on other sites

Yes, end of "NW_SET_PENDING" weather data for all airport.

Yes, it works? What does 'end of "NW_SET_PENDING" weather data for all airport.' mean?

My question was:"Is there an NW_ACTIVATE further down the log? If so, aren't there any NW_SET_PENDING's logged thereafter?", and you answer "yes", so you are saying it is okay after all?

Your log shows okay:

In both log files. FSX and FS2004
197969 NW_SET_PENDING weather command received, ICAO=ETNU 

Right? All answered now? You message isn't clear I'm afraid.

Should I write the Weather in FSX with SimConnect?

If you want to. I'm not sure what your problem is at present as you haven't explained. If there is a problem then please describe it. What is it you want to do which doesn't appear to be working correctly? Is it simply a misunderstanding or any actual operational difficulty?

Regards

Pete

Link to comment
Share on other sites

   198094 >NewSet:  **** End of New Weather details for ICAO=ETNU
   198203 NW_ACTIVATE weather command received

Okay, NW_SET_PENDING work dont in FSX.

One more question:

How can I set the Dynamic Weather on zero in FSX?

_NewWeather w;
w.uCommand = NW_DYNAMICS;
w.uDynamics = 0;
FSUIPC_Write(0xC800,1024,&w,&dwResult);
FSUIPC_Process(&dwResult);

This function set dynamic value=1

And

What is uSpare in struct "NewWeather"? I have not found "uSpare2" in the documentation.

unsigned short uSpare2[8];

Link to comment
Share on other sites

Okay, NW_SET_PENDING work dont in FSX.

Do you see the PENDING request logged AFTER the first ACTIVATE? THAT's the question I asked and which you never answer!!!

How can I set the Dynamic Weather on zero in FSX?

I think FSX never has completely zero dynamics unless you change to GLOBAL mode, new in FSX. That's what global mode was for -- non-dynamic training weather.

What is uSpare in struct "NewWeather"? I have not found "uSpare2" in the documentation.

Anything called "spare" means "unused" or "reserved".

When will you answer my question? I will investigate here when I know the answer -- but it will not be till tomorrow now as I have to go out. An answer would be appreciated please!

Regards

Pete

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.