captses
07-12-2007, 10:28 AM
Hi all. I am in the process of removing all my hair at too early an age. I have created the bitmaps for a RADIO HEIGHT gauge and I am having trouble getting the code to work. First I am a newbie at all this gauge stuff so please be kind as bald and bruises do not look good together. First let me include the code I have as of yet.
<Gauge Name="RadAlt" Version="1.0">
<Image Name="RadAltBackground.bmp"/>
<Element>
<Image Name="RadAltOFF.bmp"/>
</Element>
<Element>
<Image Name="RadAltDH.bmp"/>
</Element>
<Element>
<Position X="450" Y="450"/>
<Image Name="RadAltHeightNeedle.bmp">
<Axis X="450" Y="450"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="5000">(A:RADIO HEIGHT, degrees)</Value>
<Nonlinearity>
<Item Value="100" Degrees="80"/>
<Item Value="200" Degrees="124"/>
<Item Value="400" Degrees="165"/>
<Item Value="1000" Degrees="240"/>
<Item Value="5000" Degrees="322"/>
</Nonlinearity>
</Rotate>
</Element>
<Element>
<Image Name="RadAltRim.bmp"/>
</Element>
</Gauge>
The gauge is appearing on the panel how and where I want it. The issue I am having is getting the height needle to represent the correct height. Sitting on the tarmac (433') the gauge reads 85 feet. As I apply collective the needle rotates until it indicates 5000'. The aircraft at this point is only 293' off the ground. What am I doing wrong? Any help would be appreciated.
<Gauge Name="RadAlt" Version="1.0">
<Image Name="RadAltBackground.bmp"/>
<Element>
<Image Name="RadAltOFF.bmp"/>
</Element>
<Element>
<Image Name="RadAltDH.bmp"/>
</Element>
<Element>
<Position X="450" Y="450"/>
<Image Name="RadAltHeightNeedle.bmp">
<Axis X="450" Y="450"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="5000">(A:RADIO HEIGHT, degrees)</Value>
<Nonlinearity>
<Item Value="100" Degrees="80"/>
<Item Value="200" Degrees="124"/>
<Item Value="400" Degrees="165"/>
<Item Value="1000" Degrees="240"/>
<Item Value="5000" Degrees="322"/>
</Nonlinearity>
</Rotate>
</Element>
<Element>
<Image Name="RadAltRim.bmp"/>
</Element>
</Gauge>
The gauge is appearing on the panel how and where I want it. The issue I am having is getting the height needle to represent the correct height. Sitting on the tarmac (433') the gauge reads 85 feet. As I apply collective the needle rotates until it indicates 5000'. The aircraft at this point is only 293' off the ground. What am I doing wrong? Any help would be appreciated.