Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi Pete,

I'm trying to set the weather using the FS98 interface like you suggested. The only weird thing is that when i set the lower layer to something, an upper layer sometimes is being created at 39000 ft...

Even though i'm writing zero's to those offsets at the same time i'm writing the values for the lower layer.

Writing zero's to the upper layer doesnt make it go away either.

this is a small part of the code: the values are all defined as unsigned shorts. (16bit)

FSConnect->Write(CloudUpper.baseoffset,2,&CloudUpper.base);

FSConnect->Write(CloudUpper.ceilingoffset,2,&CloudUpper.ceiling);

FSConnect->Write(CloudUpper.coverageoffset,2,&CloudUpper.coverage);

FSConnect->Write(CloudUpper.deviationoffset,2,&CloudUpper.deviation);

FSConnect->Write(CloudUpper.icingoffset,2,&CloudUpper.icing);

FSConnect->Write(CloudUpper.turbulenceoffset,2,&CloudUpper.turbulence);

FSConnect->Write(CloudUpper.typeoffset,2,&CloudUpper.type);

+ 2x this code but with CloudLower & CloudThunderstorm objects

Is it normal that FS2002 creates is own upper cloud layer to maybe make it more realistic ?

Kind Regards,

Van Ertvelde Wim

Posted

I'm trying to set the weather using the FS98 interface like you suggested. The only weird thing is that when i set the lower layer to something, an upper layer sometimes is being created at 39000 ft...

Clouds you mean? Have you got the FSUIPC option enabled to add a cirrus layer? I think it defaults on.

FSConnect->Write

What's "FSConnect->Write"? I don't recognise that. Is it something from my SDK?

Is it normal that FS2002 creates is own upper cloud layer to maybe make it more realistic ?

No, but there is an option in FSUIPC for that. Perhaps a casual read of the FSUIPC User Guide may be in order? :wink:

Regards,

Pete

Posted

hmmm, it seems that you are right :oops:

The problem is that i'm doubting my own programming 'skills', so the first thing that comes into my mind is "I've must have programmed something wrong"

I'm using MFC for my weather interface, and the "FSConnect" is an object derived from the CFSUIPC that was delivered with the fsuipc (mfc) sdk.

Thanks for the help!

Cya,

Wim

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.