All,
I'm trying to use Nonlinerity tables in a macro and can't get it to work.
1. can you do this with macros?
2. If not could I use <Select><Value> and assign a value to and L:var and then use that in the macro?
I initialy tested this hard coding a value for each macro and the line is being drawn in the "Edge" section but when I added the nonlinearity tables I got nothing.
Help please
Joel
I'm trying to use Nonlinerity tables in a macro and can't get it to work.
1. can you do this with macros?
2. If not could I use <Select><Value> and assign a value to and L:var and then use that in the macro?
I initialy tested this hard coding a value for each macro and the line is being drawn in the "Edge" section but when I added the nonlinearity tables I got nothing.
Help please
Joel
Code:
<Macro Name="LX_rear">
<Value>(L:NAV1-DME_Distance, nmiles)</Value>
<Nonlinearity>
<Item Value="0.1" X="-29" />
<Item Value="0.3" X="-21" />
<Item Value="0.5" X="-16" />
<Item Value="0.7" X="-13" />
<Item Value="1.0" X="-10" />
<Item Value="1.5" X="-7" />
</Nonlinearity>
</Macro>
<Macro Name="LX_fwd">
<Value>(L:NAV1-DME_Distance, nmiles)</Value>
<Nonlinearity>
<Item Value="0.1" X="-187" />
<Item Value="0.3" X="-51" />
<Item Value="0.5" X="-30" />
<Item Value="0.7" X="-21" />
<Item Value="1.0" X="-14" />
<Item Value="1.5" X="-10" />
</Nonlinearity>
</Macro>
<Macro Name="Y_rear">
<Value>(L:NAV1-DME_Distance, nmiles)</Value>
<Nonlinearity>
<Item Value="0.1" Y="0" />
<Item Value="0.3" Y="22" />
<Item Value="0.5" Y="33" />
<Item Value="0.7" Y="40" />
<Item Value="1.0" Y="48" />
<Item Value="1.5" Y="54" />
</Nonlinearity>
</Macro>
<Macro Name="Y_fwd">
<Value>(L:NAV1-DME_Distance, nmiles)</Value>
<Nonlinearity>
<Item Value="0.1" Y="112" />
<Item Value="0.3" Y="84" />
<Item Value="0.5" Y="79" />
<Item Value="0.7" Y="77" />
<Item Value="1.0" Y="76" />
<Item Value="1.5" Y="76" />
</Nonlinearity>
</Macro>
// --------- Edge --------------
<Element>
<Position X="332" Y="272"/>
<Visible>@ILS_LOC_Mode 2 < (L:NAV1-DME_Distance, nmiles) 1.5 < && (A:Radio height, feet) 5 > &&</Visible>
<Element>
<Polyline Color="Lime" Linewidth="2">
<Point X="@LX_rear" Y="@Y_rear" />
<Point X="@LX_fwd" Y="@Y_fwd" />
</Polyline>
</Element>
</Element>




