Hi All,
I am trying to create a hover gauge that displays a an extending or retracting line in the direction of the aircraft velocity to depict the direction of movement whilst in a hover. I think I have the basic math and mechanics right but as soon as I but a dynamic <HeightCode> in the sim crashes. I suspect I have a memory leak but can not figure it out. A static number in the heightcode, such as '50' seems to work fine and the rotation works as expected.
Any suggestions would be appreciated.
I am trying to create a hover gauge that displays a an extending or retracting line in the direction of the aircraft velocity to depict the direction of movement whilst in a hover. I think I have the basic math and mechanics right but as soon as I but a dynamic <HeightCode> in the sim crashes. I suspect I have a memory leak but can not figure it out. A static number in the heightcode, such as '50' seems to work fine and the rotation works as expected.
Any suggestions would be appreciated.
XML:
<!-- Velocity Vector Hover Modes -->
<Macro Name="X">(A:VELOCITY BODY X, knots) (A:VELOCITY BODY Z, knots) / atg</Macro>
<Macro Name="Y">(A:VELOCITY BODY X, knots) @X sin /</Macro>
<Element>
<Visible>1</Visible>
<Position X="256" Y="256"/>
<Element>
<Rectangle Color="0x00ff00" Width="1" Height="256" Bright="No">
<HeightCode>@Y</HeightCode>
</Rectangle>
<Rotate>
<Value>@X pi +</Value>
</Rotate>
</Element>
</Element>





