Recommended Posts

Hi,I wonder how you can store a baro value and at a later moment use that same value see my code below. I have read FAQ 15 and 19 and I assume it is the same with the baro but how can you convert it to the k-scale before storing?BrgdsEugen%Push To Alter STD %(A:Kohlsman setting hg, inHg) 100 * flr 2991 != if{ (A:Kohlsman setting hg, inHg) (>L:Baro nr, enum) 16210 (>K:KOHLSMAN_SET, InHG) } els{ ( L:Baro nr, enum) (>K:KOHLSMAN_SET, InHG) }

Share this post


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

Eugen,Perhaps you can use this one?Sets QNE and QNH:(>K:BAROMETRIC)16210.5 (>K:KOHLSMAN_SET)Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites

Hi,What I mean hould I add 16210 or should multiply with 16210 to the displayed value.BrgdsEugen

Share this post


Link to post
Share on other sites

Use 16*setting_in_MB as argument for the K: event.e.g.

"1013.3 16 * int (>K:KOHLSMAN_SET)"

for setting 1013.3 MB.Arne Bartels

Share this post


Link to post
Share on other sites

Hi, againfirst part is succesful but when I try to click again to retrieve the original value it does'nt work ??Eugen%Push To Alter STD %(A:Kohlsman setting setting mb, millibar) int 1013 != if{ (A:Kohlsman setting mb, millibar) (>L:Baro nr, enum) 1013 16 * int (>K:KOHLSMAN_SET) } els{ (L:Baro nr, enum) 16 * int (>K:KOHLSMAN_SET) }

Share this post


Link to post
Share on other sites

What's wrong with this statement :(A:Kohlsman setting setting mb, millibar)compared to(A:Kohlsman setting mb, millibar)?Arne Bartels

Share this post


Link to post
Share on other sites

I know, I know!!!The word setting is repeated!!!(VBG)No worries, Eugen, you should see some of my mistakes when coding...

Share this post


Link to post
Share on other sites

Hi Guys,Hehe, I obviously need a pair of strong glasses. I could'nt see until now, I read what thought I had written :-)Thanks, what would I do with out you :-)brgdsEugen

Share this post


Link to post
Share on other sites

Hi all,I have a question:What do you want with the code?Is it just a way to store a local QNH and bring it back later?I think pressure should change in time.I use transition altitude to autoset QNH and QNE. Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites

Hi Jan,Yes that is right. Pulling the baro knob selects the standard baro reference setting. Pushing the knob from the STD position makes the last selected QNH baro setting available.//Eugen

Share this post


Link to post
Share on other sites

Eugen,That is ok, but when you restore the original QNH after some time, passing transition altitude, the local QNH can be quite different.Then you have a wrong altimeter-setting or don't i understand something?Jan"Procul Negotiis"

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