• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Detecting Hard Winter

Messages
158
Country
us-northcarolina
Does anyone know of a way to detect if the location of the user aircraft is using the hard winter textures or not?

The only way I can think of is to see if it's snowing and if so, it's hard winter; if not then read seasons.bgl and see if the location you're in is coded as a hard winter location in the current month.

That's a lot of I/O for a gauge to do just to find this little bit out. It would be so nice if you could just ask for it and get the sim to tell you. It knows, after all, what textures it's showing out the airplane window.

The purpose is to adjust our ground icing simulation in FSCaptain based on the visual freezing conditions at the airport. Hard winter = worse icing.
 
Icing is a factor of temperature and visible moisture so snag two of those pertinent values and that would be more accurate. -5 C to 5 C with visible moisture is typically regarded as the icing range.

-Matt
 
To be a little more clear about what we're doing, we're extending the FSX icing simulation (which is based on temperature and the presence of the icing attribute in a cloud layer) to include icing that accumulates on the ground, requiring de-icing procedures before takeoff. In standard FSX you never have to de-ice on the ground. In the real world, you often do, especially in hard winter areas.

One of the reasons is called "active frost". This is nothing more than frost on your wings that accumulates overnight due to frozen condensation. (Of course FSX doesn't simulate this.) Frost can even continue to accumulate all day if the humidity and temperature conditions are right.

Right now we're determining the presence of active frost by a combination of ambient humidity and temperature based on published formulas. But what we want to do is adjust the rate of accumulation. The problem is we have no idea what's happened in the past. We don't know and have no way of knowing if it was snowing overnight or the previous day. So, to partly compensate for that we want to have a higher rate of active frost accumulation if the world outside looks like winter.

That's why we want to know if we're looking at hard winter textures.
 
I don't know what exactly triggers hard winter textures, I just know that it's pretty inconsistent to what you see outside. The biggest influence is probably ambient temperature spiced up by ambient pressure and maybe visibility.

Icing was a subject I've dealt with in the past, but I figured that the presence of rain or snow and flying in clouds at sub-zero temperatures was enough to start accumulating ice on the leading edges of all relevant aircraft parts. For accumulated ice on a parked aircraft, I'd proabably add ambient pressure and visibility (low = higher chance of humidity = higher chance of ice) and a random number generator into the equation.
 
FSX/P3D or (or FS9) won't accumulate structural icing unless the temp is below freezing (not 5C but freezing) and the icing attribute is set in the cloud layer you're currently in. Precipitation has nothing to do with it, nor humidity or pressure or even how dense the clouds are. The rate of accumulation is controlled by the icing level, which can go from trace to severe. But even severe icing accumulates pretty slowly. It stops accumulating when you're out of the icing cloud layer, and melts when the temp is above freezing. It takes a lot of ice to affect flight dynamics, but it can happen.

We accumulate ground ice due to active frost, cold soaked wings and freezing fog in addition to that standard described above. Random factors and ambient conditions play a part. But I want to factor in the visible hard winter textures as an intensifier for active frost. If I can figure out a way to detect whether the textures are being shown.
 
Is the (A:SURFACE CONDITION,enum) not working?
One of:
0: Normal
1: Wet
2: Icy
3: Snow
 
Sadly, they don't appear to work at all. Both (A:SURFACE INFO VALID,bool) and (A:SURFACE CONDITION,enum) remain zero no matter where I place the aircraft or what the conditions are.

I've tried to place it on grass, runway, everything I could think of, in snow, when it is clear, in a hard winter location, etc.

Always zero, both of them.
 
Dutch,

In FSX, SURFACE CONDITION seems to return reasonable results through SimConnect, although SURFACE INFO VALID is always zero.
 
FSX/P3D or (or FS9) won't accumulate structural icing unless the temp is below freezing (not 5C but freezing) and the icing attribute is set in the cloud layer you're currently in. Precipitation has nothing to do with it, nor humidity or pressure or even how dense the clouds are. The rate of accumulation is controlled by the icing level, which can go from trace to severe. But even severe icing accumulates pretty slowly. It stops accumulating when you're out of the icing cloud layer, and melts when the temp is above freezing. It takes a lot of ice to affect flight dynamics, but it can happen.

I wasn't talking about default icing behaviour, but a custom one that is built into an airplane model. Using the influences previously described by me.
 
I will check out the SimConnect results. Odd that it would differ from what execute_calculator_code gives. But if it works, great!

Heretic: Sorry I misunderstood.
 
Last edited:
(A:SURFACE CONDITION,enum) certainly works in FS9. (it isn't in the SDK) It would be nice to know what the numbers mean.
Right now we're having heavy snow, the local airport is closed and (A:SURFACE CONDITION,enum) returns 3
Here is the METAR 2015/02/05 08:50 LIMZ 050850Z 33003KT 0600 R21/0800N SN OVC002 01/00 Q1002 R21/SNOCLO

PS Just panned up and seen Fratello Guglielmo's post!
Oh, and BTW Dutch I use your gauge on the VC10 and the icing light does illuminate on the ground if conditions dictate.
 
Last edited:
If one combines the ambient temperature say +1 or +2c and the snow surface conditon then you have in effect slush. Adjust the brakes to poor or even no braking and voila(sorry for the French) you have aquaplaning or very low braking efficiency. The same for the ice setting. Rain is bit different because I Don't see a way of detecting heavy rain.
 
I've mislaid my A: AMBIENT PRECIP STATE list. This afternoon I had 4 coupled with (A:SURFACE CONDITION,enum) 3 That's perfect for slush:stirthepo
I've setup ground speed above 80kts, A: AMBIENT PRECIP STATE 4(but I also need the other numbers) and (A:SURFACE CONDITION,enum) 3 which triggers brake failure. One can aquaplane both on the take-off or landing run. If it is triggered not to reset until stationary :stirthepo:stirthepo:stirthepo:stirthepo
Poor simmers having to cope with reality poverini!
 
Well, well, it turns out my test code had a ridiculous (and therefore hard to see) syntax error that caused it to always return zero.

I'd never have realized that if I hadn't posted here - thank you all. Yes, I can detect Surface Condition and I'm very happy about that!

Dutch
 
Dutch, I sympathize with you. I compiled an installer the other day for the latest Alpha Build of the KA350i, and couldn't for the life of me figure out why the files were not being extracted and installed from the executable...

After some hours of wasted head-banging, I finally noticed a tiny, insignificant semi-colon that had crept into my installer script. In NSIS script syntax, a semi-colon is treated as a 'remark' symbol and a huge whack of my script's instructions was being ignored. :censored:
 
Back
Top