- Messages
- 1,564
- Country

I can make use of fs9gps variables within the XML code of the gauge I’m building…but I can’t always display the fs9gps variables directly and I need some help figuring out why.
Here’s an example:
The following is displayed on my screen:
PHHN C:fs9gps:FlightPlanDepartureAirportIdent
7.00 C:fs9gps:FlightPlanWaypointsNumber
0.00 C:fs9gps:FlightPlanWaypointRemainingTotalDistance
54.71 L
istanceToDestination
Everything appears correct except the third value, FlightPlanWaypointRemainingTotalDistance. Note that L
istanceToDestination gets its value directly from FlightPlanWaypointRemainingTotalDistance and 54.71 is the correct number.
But, why the 0.00 display for FlightPlanWaypointRemainingTotalDistance?
I’m missing something simple but I don’t know what it is. Suggestions?
rpmc
Here’s an example:
Code:
<Gauge Name="GPS display Question" Version="1.0">
<Size X="400" Y="1000" />
<Macro Name="c">C:fs9gps</Macro>
<Macro Name="g">C:fs9gps</Macro>
<Update>
(@c:FlightPlanWaypointRemainingTotalDistance,nmiles) (>L:DistanceToDestination,nmiles)
</Update>
<Element>
<Position X="10" Y="10"/>
<Text X="732" Y="15" Bright="Yes" Length="61" Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
<String>%((@c:FlightPlanDepartureAirportIdent))%!10s!%(' @c:FlightPlanDepartureAirportIdent')%!-50s!</String>
</Text>
</Element>
<Element>
<Position X="10" Y="28"/>
<Text X="732" Y="15" Bright="Yes" Length="61" Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
<String>%((@c:FlightPlanWaypointsNumber,number))%!10.2f!%(' @c:FlightPlanWaypointsNumber')%!-50s!</String>
</Text>
</Element>
<Element>
<Position X="10" Y="46"/>
<Text X="732" Y="15" Bright="Yes" Length="61" Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
<String>%((@c:FlightPlanWaypointRemainingTotalDistance,nmiles))%!10.2f!%(' @c:FlightPlanWaypointRemainingTotalDistance')%!-50s!</String>
</Text>
</Element>
<Element>
<Position X="10" Y="64"/>
<Text X="732" Y="15" Bright="Yes" Length="61" Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
<String>%((L:DistanceToDestination,nmiles))%!10.2f!%(' L:DistanceToDestination')%!-50s!</String>
</Text>
</Element>
</Gauge>
The following is displayed on my screen:
PHHN C:fs9gps:FlightPlanDepartureAirportIdent
7.00 C:fs9gps:FlightPlanWaypointsNumber
0.00 C:fs9gps:FlightPlanWaypointRemainingTotalDistance
54.71 L
Everything appears correct except the third value, FlightPlanWaypointRemainingTotalDistance. Note that L
But, why the 0.00 display for FlightPlanWaypointRemainingTotalDistance?
I’m missing something simple but I don’t know what it is. Suggestions?
rpmc
