May 10, 200323 yr 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) }
May 10, 200323 yr Author Eugen,Perhaps you can use this one?Sets QNE and QNH:(>K:BAROMETRIC)16210.5 (>K:KOHLSMAN_SET)Jan"Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
May 10, 200323 yr Hi,What I mean hould I add 16210 or should multiply with 16210 to the displayed value.BrgdsEugen
May 10, 200323 yr 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
May 10, 200323 yr 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) }
May 10, 200323 yr What's wrong with this statement :(A:Kohlsman setting setting mb, millibar)compared to(A:Kohlsman setting mb, millibar)?Arne Bartels
May 10, 200323 yr I know, I know!!!The word setting is repeated!!!(VBG)No worries, Eugen, you should see some of my mistakes when coding...
May 10, 200323 yr 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
May 10, 200323 yr Author 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" Jan "Beatus ille qui procul negotiis..."
May 10, 200323 yr 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
May 10, 200323 yr Author 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" Jan "Beatus ille qui procul negotiis..."
Create an account or sign in to comment