Archived

This topic is now archived and is closed to further replies.

Engjell Berisha

How to determine if Kolhsman is set to Standard?

Recommended Posts

I'm creating a PFD, it has a display that shows the kohlsman setting but when it's at 29.92 it displays the letters STD. I can't work out mathematically how to define when this is. I've tried this:(A:KOHLSMAN SETTING HG,inHg) 29.92 - <Althought this yeilds a infinitely small number and not zero as I had hopped>I tried using visible tags but (A:KOHLSMAN SETTING HG,inHg) 29.92 == nor (A:KOHLSMAN SETTING HG,inHg) 29.92 != work.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

IIRC FS uses MBars natively then does internal conversions to show InHg. I suppose you could try (A:KOHLSMAN SETTING MB, millibars) 1013 == -or- even better just use a range in InHg -----> 29.919 29.921 (A:KOHLSMAN SETTING HG,inHg) rng Roman

Share this post


Link to post
Share on other sites

yeah, I agree with Roman – use millibars in your script…then display inHg if req’d.As I recall I had this problem too, and things only worked after I switched to millibars.here's another variation using near

(A:KOHLSMAN SETTING MB,Millibars) near 1013 == if{ #STD# }

Share this post


Link to post
Share on other sites

Not sure if this is of any use, I created it for a gent in Sth Africa to use on the default Cessna .It gives a read out in either inches or Hpa/millibars and can set the datum.CheersKarol

<Gauge Name="Altimeter Datum Controller F111" Version="1.0">//By Karol Chlebowski @ 2010 **<Element><Image Name="ALT_DATUM.bmp"/></Element><Element><Visible>(A:Circuit general panel on, bool)</Visible>  <!--KOHLSMAN-->      <Element>        <Position X="16" Y="10"/>        <FormattedText X="32" Y="17" Font="Arial" FontSize="8" LineSpacing="8" Adjust="Center" Color="#99FF66" Bright="Yes" Tabs="0">          <String>%((L:KOHLSMAN, number) 0 == if{ 0 } els{ 1 } )%{case}%{:0}%((A:KOHLSMAN SETTING HG, inHG))%!2.2f!\n %in HG%{:1}%((A:KOHLSMAN SETTING MB, mbar))%!4d!\n %mb HG%{end}</String>        </FormattedText>      </Element></Element><Mouse>     <Area Left="51" Top="7" Width="12" Height="12">	<Tooltip>INC</Tooltip>      <Cursor Type="Hand"/>      <Click Kind="LeftSingle" Repeat="Yes">0 == if{ (>K:KOHLSMAN_INC) }</Click>    </Area>        <Area Left="51" Top="18" Width="12" Height="12">	<Tooltip>DEC</Tooltip>      <Cursor Type="Hand"/>      <Click Kind="LeftSingle" Repeat="Yes">0 == if{ (>K:KOHLSMAN_DEC) }</Click>    </Area>       <Area Left="1" Top="12" Width="12" Height="12">     <Tooltip>%Toggle In or hPa</Tooltip>            <Click Kind="LeftSingle">0 == if{ (L:KOHLSMAN, number) ! (>L:KOHLSMAN, number) }</Click>            <Cursor Type="Hand"/>    </Area></Mouse></Gauge>

Share this post


Link to post
Share on other sites