I've added two reference markers to an altimeter.
They will indicate an altitude value based on what the altimeter barometric setting is.
I want them to move only when I change the KOHLSMAN setting.
I made the below test code to see what happens when I change the KOHLSMAN setting. The code doesn't work correctly.
I load a default flight. The setting is the default 29.92. Instead of 0, the L:Var is set to 50. What have I messed up??
I have found that incrementing and decrementing the Kohlsman setting returns a value with a third decimal
place, e.g. 29.911, so that I won't use (A:KOHLSMAN SETTING HG, inHg) value == after I get past this.
Pressing the B key will set a two-place decimal. In this test case 29.92. The L:Var setting stays set at
50. But, shouldn't 29.92 == work to set the L:Var to 0 in this specific case? Or, is it not changing because
of whatever is wrong with the first line of code?
TIA
They will indicate an altitude value based on what the altimeter barometric setting is.
I want them to move only when I change the KOHLSMAN setting.
I made the below test code to see what happens when I change the KOHLSMAN setting. The code doesn't work correctly.
Code:
<Element>
<Select>
<Value>
(A:KOHLSMAN SETTING HG, inHg) 29.91 >= (A:KOHLSMAN SETTING HG, inHg) 29.92 < AND if{ 50 (>L:100s_ref_marker, enum) }
(A:KOHLSMAN SETTING HG, inHg) 29.92 == if{ 0 (>L:100s_ref_marker, enum) }
</Value>
</Select>
</Element>
I load a default flight. The setting is the default 29.92. Instead of 0, the L:Var is set to 50. What have I messed up??
I have found that incrementing and decrementing the Kohlsman setting returns a value with a third decimal
place, e.g. 29.911, so that I won't use (A:KOHLSMAN SETTING HG, inHg) value == after I get past this.
Pressing the B key will set a two-place decimal. In this test case 29.92. The L:Var setting stays set at
50. But, shouldn't 29.92 == work to set the L:Var to 0 in this specific case? Or, is it not changing because
of whatever is wrong with the first line of code?
TIA

