- Messages
- 52
- Country
Hi, need again your help. How can I read the airport altitude used by sim for a specific airport inside a xml gauge?
Last edited:
Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.
<!-- SET the Airport -->
'A KLAS' (>C:fs9gps:WaypointAirportICAO, string)
<!-- GET the Data -->
(L:WaypointAirportElevation, feet) (>L:Destination_Airport_Elevation, feet)
'A (L:Airport, string)' (>C:fs9gps:WaypointAirportICAO, string)
<Macro Name="ToString1">
(@1, number) 21 >> 0x7F & chr
(@1, number) 14 >> 0x7F & chr scat
(@1, number) 7 >> 0x7F & chr scat
(@1, number) 0x7F & chr scat
</Macro>
<Macro Name="ToString4">
@ToString1(@1_4) @ToString1(@1_3) @ToString1(@1_2) @ToString1(@1_1) scat scat scat
</Macro>
<Macro Name="ToString">
@ToString4(@1_4) @ToString4(@1_3) @ToString4(@1_2) @ToString4(@1_1) scat scat scat
</Macro>
<!-- SET the Airport -->
'A ' @ToString(L:Airport_ASCII_ICAO, enum) scat (>C:fs9gps:WaypointAirportICAO, string)
<!-- GET the Data -->
(C:fs9gps:WaypointAirportElevation, feet) (>L:Destination_Airport_Elevation, feet)
That's what I try to do....1. Specify a fs9gps Ident, construct the fs9gps airport ICAO using the Ident, and then enter the fp9gps database using the fs9gps ICAO (C:fs9gpsWaypointAirportICAO) to extract airport altitude using gps variable (C:fs9gps:WaypointAirportElevation, feet). The fs9gps Ident is a 3 to 4 character airport identifier often referred to in the real world as the airport ICAO, but in flight sim fs9gps terms, it is called the Ident.