Jump to content
The simFlight Network Forums

Ice detector


Recommended Posts

Pete another question,

 

Now im using this sioc script for an ide detector:

 

Var 0113, name ice_alert, Link FSUIPC_IN, Offset $0E86, Length 2
{
  IF &ice_alert = 1
  {
    &rele6 = 1    
  }
  IF &ice_alert = 0
  {
    &rele6 = 0    
  }
  IF &ice_alert = 2
  {
    &rele6 = 1    
  }
  IF &ice_alert = 0
  {
    &rele6 = 0    
  }
  IF &ice_alert = 3
  {
    &rele6 = 1    
  }
  IF &ice_alert = 0
  {
    &rele6 = 0    
  }
  IF &ice_alert = 4
  {
    &rele6 = 1    
  }
  IF &ice_alert = 0
  {
    &rele6 = 0    
  }
}
 
Var 0114, name rele6, Link USB_RELAYS, Device 1, Output 6
 
But i noticed there is another offset that should do the same job:
 
Var 0113, name structural_ice, Link FSUIPC_IN, Offset $0348, Length 2
{
  IF V0113 > 300
  {
    &rele6 = 1    
  }
  IF V0113 < 300
  {
    &rele6 = 0    
  }
}
 
Var 0114, name rele6, Link USB_RELAYS, Device 1, Output 6
 
However it does not seem to work , values are 0-16384 but what are these values?
 
Best regards Remco

 

Link to comment
Share on other sites

Var 0113, name ice_alert, Link FSUIPC_IN, Offset $0E86, Length 2

 
However it does not seem to work , values are 0-16384 but what are these values?

 

Offset 0E86 is cloud icing, as set in the FS weather for clouds at the aircraft altitude (if you are in them, which it can't tell), and is a value from 0-4 according to the setting.

 

Offset 0348 is 0-16384, and is a structural ice build-up. It is read from SimConnect's variable "STRUCTURAL ICE PCT"

 

As usual with all "percentage" variables mapped to offsets, 16384 = 100%, 0 = 0%.

 

Please don't post SIOC code or scripts, whatever. They are meaningless to me. Just state the offset and the query please.

 

Pete

Link to comment
Share on other sites

Thanks Pete for the answer, my question is with the 0348 offset is it working with every aircraft, do aircraft pickup icing in p3d ?

 

Sorry, I don't know. What you get is simply what SimConnect provides. FSUIPC just reflects the values provided by FS or P3D. You'd need to test every aircraft if you really needed to know. I would have thought it applied to all default aircraft, but whether add-on makers can bypass it, avoid it, or do their own icing I've no idea -- they do find ways of doing a lot of their own systems. For instance PMDG aircraft use hardly any of FS systems.

 

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.