mskhan1991
Resource contributor
- Messages
- 935
- Country

Although the picture is self explanatory, I'd still like to mention that difference occurs in barometric height shown by the Altimeter between 2d and 3d altimeters.
This is my first time designing a 2D gauge. I've attached the 2D gauge code plus the gauge itself. Please help me out as I am unable to understand this non linearity tables (I believe it has something to do with that).
This is my first time designing a 2D gauge. I've attached the 2D gauge code plus the gauge itself. Please help me out as I am unable to understand this non linearity tables (I believe it has something to do with that).
Code:
<Gauge Name="Altimeter" Version="1.0">
<Image Name="Altimeter_Background.bmp"/>
<Element>
<Position X="121" Y="70"/>
<MaskImage Name="Altimeter_Strip_1_Mask.bmp">
<Axis X="0" Y="7"/>
</MaskImage>
<Image Name="Altimeter_Strip_1.bmp">
<Nonlinearity>
<Item Value="28.1" X="0" Y="7"/>
<Item Value="31.5" X="0" Y="347"/>
</Nonlinearity>
</Image>
<Shift>
<Value Minimum="28.1" Maximum="31.5">(A:Kohlsman setting hg,inHg)</Value>
</Shift>
</Element>
<Element>
<Position X="244" Y="290"/>
<Image Name="Altimeter_Needle_10000.bmp">
<Axis X="25" Y="215" PointsTo="North"/>
</Image>
<Rotate>
<Value>(P:Units of measure, enum) 2 == if{ (A:Indicated Altitude, feet) } els{ (A:Indicated Altitude, meters) 5000 /</Value>
<Failures>
<GAUGE_ALTIMETER Action="Freeze"/>
</Failures>
</Rotate>
</Element>
<Element>
<Position X="244" Y="290"/>
<Image Name="Altimeter_Needle_1000.bmp">
<Axis X="30" Y="125" PointsTo="North"/>
</Image>
<Rotate>
<Value>(P:Units of measure, enum) 2 == if{ (A:Indicated Altitude, feet) } els{ (A:Indicated Altitude, meters) } 500 /</Value>
<Failures>
<GAUGE_ALTIMETER Action="Freeze"/>
</Failures>
</Rotate>
</Element>
<Element>
<Position X="244" Y="290"/>
<Image Name="Altimeter_Needle_100.bmp">
<Axis X="15" Y="184" PointsTo="North"/>
</Image>
<Rotate>
<Value>(P:Units of measure, enum) 2 == if{ (A:Indicated Altitude, feet) } els{ (A:Indicated Altitude, meters) } 50 / </Value>
<Failures>
<GAUGE_ALTIMETER Action="Freeze"/>
</Failures>
</Rotate>
</Element>
<Element>
<Position X="429" Y="491"/>
<Image Name="Altimeter_Knob.bmp">
<Axis X="52" Y="52"/>
</Image>
<Rotate>
<Value Minimum="28.1" Maximum="31.5">(A:Kohlsman setting hg,inHg)</Value>
<Nonlinearity>
<Item Value="28" Degrees="0"/>
<Item Value="31" Degrees="720"/>
</Nonlinearity>
</Rotate>
</Element>
<Mouse>
<Help ID="HELPID_GAUGE_ALTIMETER"/>
<Tooltip ID="TOOLTIPTEXT_ALTIMETER_FEET" EnglishID="TOOLTIPTEXT_ALTIMETER_FEET" MetricID="TOOLTIPTEXT_ALTIMETER_FEET_METERS_SPECIAL"/>
<Area Left="127" Right="153" Top="137" Bottom="161">
<Help ID="HELPID_GAUGE_KOHLSMAN_KNOB"/>
<Tooltip ID="TOOLTIPTEXT_ALTIMETER_KOHLSMAN_INHG" MetricID="TOOLTIPTEXT_ALTIMETER_KOHLSMAN_MBAR"/>
<Area Right="14">
<Cursor Type="DownArrow"/>
<Click Event="KOHLSMAN_DEC" Repeat="Yes"/>
</Area>
<Area Left="14">
<Cursor Type="UpArrow"/>
<Click Event="KOHLSMAN_INC" Repeat="Yes"/>
</Area>
</Area>
</Mouse>
</Gauge>



