Jump to content
Sign in to follow this  
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.


Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

Share this post


Link to post
Share on other sites

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


20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

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

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
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...