- Messages
- 455
- Country

Hi Folks, I wanted a digital RadAlt gauge for a P3D pop-up panel I am building for helicopters (personal use only). I found one in a cab file for an Antonov AN12. I have no idea how long I have had the cab file or which sim it was meant for but it works in FSX and it works in P3D (sort of). The gauge reads in metres and ideally I would like it to read in feet. Can someone check over the code below and maybe suggest what line(s) I need to change to make the gauge read in feet. Thanks.
XML:
<Gauge Name="ZH_Ralt_win" Version="1.0">
<Image Name="ZH_Ralt_win_Mask.bmp" ImageSizes="120,38"/>
<Element>
<Visible>(A:ELECTRICAL AVIONICS BUS VOLTAGE,bool)</Visible>
<MaskImage Name="ZH_Ralt_win_Mask.bmp" Bright="Yes" ImageSizes="120,38">
<Axis X="0" Y="7"/>
</MaskImage>
<Image Name="ZH_Ralt_strip.bmp" Bright="Yes" ImageSizes="33,343">
<Nonlinearity>
<Item Value="0" X="6" Y="5"/>
<Item Value="9" X="6" Y="284"/>
</Nonlinearity>
</Image>
<Shift>
<Value>(A:Radio height, meters) 0 max s1 10000 / 10 % flr l1 10000 % 9999 > if{ l1 10 % 9 - + }</Value>
</Shift>
</Element>
<Element>
<Visible>(A:ELECTRICAL AVIONICS BUS VOLTAGE,bool)</Visible>
<MaskImage Name="ZH_Ralt_win_Mask.bmp" Bright="Yes" ImageSizes="120,38">
<Axis X="25" Y="7"/>
</MaskImage>
<Image Name="ZH_Ralt_strip.bmp" Bright="Yes" ImageSizes="33,343">
<Nonlinearity>
<Item Value="0" X="6" Y="5"/>
<Item Value="9" X="6" Y="284"/>
</Nonlinearity>
</Image>
<Shift>
<Value>(A:Radio height, meters) 0 max s1 1000 / 10 % flr l1 1000 % 999 > if{ l1 10 % 9 - + }</Value>
</Shift>
</Element>
<Element>
<Visible>(A:ELECTRICAL AVIONICS BUS VOLTAGE,bool)</Visible>
<MaskImage Name="ZH_Ralt_win_Mask.bmp" Bright="Yes" ImageSizes="120,38">
<Axis X="50" Y="7"/>
</MaskImage>
<Image Name="ZH_Ralt_strip.bmp" Bright="Yes" ImageSizes="33,343">
<Nonlinearity>
<Item Value="0" X="6" Y="5"/>
<Item Value="9" X="6" Y="284"/>
</Nonlinearity>
</Image>
<Shift>
<Value>(A:Radio height, meters, meters) 0 max s1 100 / 10 % flr l1 100 % 99 > if{ l1 10 % 9 - + }</Value>
</Shift>
</Element>
<Element>
<Visible>(A:ELECTRICAL AVIONICS BUS VOLTAGE,bool)</Visible>
<MaskImage Name="ZH_Ralt_win_Mask.bmp" Bright="Yes" ImageSizes="120,38">
<Axis X="75" Y="7"/>
</MaskImage>
<Image Name="ZH_Ralt_strip.bmp" Bright="Yes" ImageSizes="33,343">
<Nonlinearity>
<Item Value="0" X="6" Y="5"/>
<Item Value="9" X="6" Y="284"/>
</Nonlinearity>
</Image>
<Shift>
<Value>(A:Radio height, meters) 0 max s1 10 / 10 % flr l1 10 % 9 > if{ l1 10 % 9 - + }</Value>
</Shift>
</Element>
<Element>
<Visible>(A:ELECTRICAL AVIONICS BUS VOLTAGE,bool)</Visible>
<MaskImage Name="ZH_Ralt_win_Mask.bmp" Bright="Yes" ImageSizes="120,38">
<Axis X="100" Y="7"/>
</MaskImage>
<Image Name="ZH_Ralt_strip.bmp" Bright="Yes" ImageSizes="33,343">
<Nonlinearity>
<Item Value="0" X="6" Y="5"/>
<Item Value="9" X="6" Y="284"/>
</Nonlinearity>
</Image>
<Shift>
<Value>(A:Radio height, meters) 0 max 10 %</Value>
</Shift>
</Element>
</Gauge>
