Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WaypointAirport

Featured Replies

  • Commercial Member
<Element Name="DESTINATION ARRIVAL"><Visible>(L:FMC-DEST-ARR,enum) 1 ==</Visible><FormattedText X="275" Y="230" Bright="Yes" Font="Calibri" FontSize="15" Adjust="left" Color="%( (L:FMC-BRT,number) 0x7f + 0x100 * )%"  LineSpacing="15" Tabs="15,25L,120C,265R,270R"><String>%('A' (>@c:IcaoSearchStartCursor) (L:FMC-RTE-DEST-1,number) chr (L:FMC-RTE-DEST-2,number) chr (L:FMC-RTE-DEST-3,number) chr (L:FMC-RTE-DEST-4,number) chr scat scat scat (>@c:IcaoSearchEnterChar) (@c:IcaoSearchCurrentIcao) (>@c:WaypointAirportICAO))%(1 sp1)%(l1 (>@c:WaypointAirportCurrentRunway))\n\{lsp=20}\n-NONE-\t\t\t%((@c:WaypointAirportICAO))%!s!\n\t\t\t%((@c:WaypointAirportCurrentRunway))%!s!\n\t\t%((@c:WaypointAirportRunwayDesignation))%!s!\n\t\t%((@c:WaypointAirportName))%!s!</String></FormattedText></Element>

I get no returns for WaypointAirportRunwayDesignation or Airport Name or any other useful Airport variable. Waypoint ICAO shows and current runway shows. If I get ride of the second set of paranthesis and make it %(@c:WaypointAirportRunwayDesignation)%!s! then I get the number 64512 no matter what any of the other variables are set to.

Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

Hi, Have this one somewhere in a string and it works; don't mind the L:Var's.<!--AUTOMATIC DESTINATION-->%((L:rte,enum) 1 == (L:Choose airport,enum) 0 == and)%{if}%((@c:FlightPlanWaypointsNumber) 1 - (>@c:FlightPlanWaypointIndex) (@c:FlightPlanWaypointICAO) (>@c:WaypointAirportICAO) (L:Runway Selection,enum) (>@c:WaypointAirportCurrentRunway))%{end}<!--AUTOMATIC DEPARTURE AND DESTINATION-->%((L:rte,enum) 1 == (L:Choose airport,enum) 1 == and)%{if}%((@c:FlightPlanActiveWaypoint) 2 * (@c:FlightPlanWaypointsNumber) <)%{if}%(0 (>@c:FlightPlanWaypointIndex) (@c:FlightPlanWaypointICAO) (>@c:WaypointAirportICAO) (L:Runway Selection,enum) (>@c:WaypointAirportCurrentRunway))%{else}%((@c:FlightPlanWaypointsNumber) 1 - (>@c:FlightPlanWaypointIndex) (@c:FlightPlanWaypointICAO) (>@c:WaypointAirportICAO) (L:Runway Selection,enum) (>@c:WaypointAirportCurrentRunway))%{end}%{end}<!--AUTOMATIC NEAREST AIRPORT-->%((L:rte,enum) 1 == (L:Choose airport,enum) 2 == and)%{if}%((@c:WaypointAirportIdent) slen 0 ==)%{if}%(0 (>@c:NearestAirportCurrentLine) (@c:NearestAirportCurrentICAO) (>@c:WaypointAirportICAO) (L:Runway Selection,enum) (>@c:WaypointAirportCurrentRunway))%{end}%{end}<!--SELECT NEAREST AIRPORT-->%((L:rte,enum) 1 == (L:Choose airport,enum) 3 == and)%{if}%((L:Airport Selection,enum) (>@c:NearestAirportCurrentLine) (@c:NearestAirportCurrentICAO) (>@c:WaypointAirportICAO) (L:Runway Selection,enum) (>@c:WaypointAirportCurrentRunway))%{end}Hope you can extract something useful from it,Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Author
  • Commercial Member
Hi, Have this one somewhere in a string and it works; don't mind the L:Var's.<!--AUTOMATIC DESTINATION-->%((L:rte,enum) 1 == (L:Choose airport,enum) 0 == and)%{if}%((@c:FlightPlanWaypointsNumber) 1 - (>@c:FlightPlanWaypointIndex) (@c:FlightPlanWaypointICAO) (>@c:WaypointAirportICAO) (L:Runway Selection,enum) (>@c:WaypointAirportCurrentRunway))%{end}<!--AUTOMATIC DEPARTURE AND DESTINATION-->%((L:rte,enum) 1 == (L:Choose airport,enum) 1 == and)%{if}%((@c:FlightPlanActiveWaypoint) 2 * (@c:FlightPlanWaypointsNumber) <)%{if}%(0 (>@c:FlightPlanWaypointIndex) (@c:FlightPlanWaypointICAO) (>@c:WaypointAirportICAO) (L:Runway Selection,enum) (>@c:WaypointAirportCurrentRunway))%{else}%((@c:FlightPlanWaypointsNumber) 1 - (>@c:FlightPlanWaypointIndex) (@c:FlightPlanWaypointICAO) (>@c:WaypointAirportICAO) (L:Runway Selection,enum) (>@c:WaypointAirportCurrentRunway))%{end}%{end}<!--AUTOMATIC NEAREST AIRPORT-->%((L:rte,enum) 1 == (L:Choose airport,enum) 2 == and)%{if}%((@c:WaypointAirportIdent) slen 0 ==)%{if}%(0 (>@c:NearestAirportCurrentLine) (@c:NearestAirportCurrentICAO) (>@c:WaypointAirportICAO) (L:Runway Selection,enum) (>@c:WaypointAirportCurrentRunway))%{end}%{end}<!--SELECT NEAREST AIRPORT-->%((L:rte,enum) 1 == (L:Choose airport,enum) 3 == and)%{if}%((L:Airport Selection,enum) (>@c:NearestAirportCurrentLine) (@c:NearestAirportCurrentICAO) (>@c:WaypointAirportICAO) (L:Runway Selection,enum) (>@c:WaypointAirportCurrentRunway))%{end}Hope you can extract something useful from it,Jan
Thank You very much Jan. I'll give it a try and report back tonight.

Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

  • Author
  • Commercial Member

It seems that waypoint airport only works if the destination airport of an active flightplan is the waypointairporticao, is this correct?

Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

No,(L:rte,enum) is just the fmc page, where it happens.(L:Choose airport,enum) 0 max 3 min (>L:Choose airport,enum) sets the different modes 1 - 4 (auto dest, auto dep/arr),auto nearest and choose nearest).Then((L:Airport Selection,enum) 0 max (@c:NearestAirportItemsNumber) min (>L:Airport Selection,enum) let you choose between the nearest airports.Finally(L:Runway Selection,enum) 0 max (@c:WaypointAirportRunwaysNumber) min (>L:Runway Selection,enum) toggles between the available runways.Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Author
  • Commercial Member
\n\{lsp=20}%((L:FMC-ORGN-DEP,enum) 1 ==)%{if}%('A' (>@c:IcaoSearchStartCursor) (L:FMC-RTE-ORGN-1,number) chr (L:FMC-RTE-ORGN-2,number) chr (L:FMC-RTE-ORGN-3,number) chr (L:FMC-RTE-ORGN-4,number) chr scat scat scat (>@c:IcaoSearchEnterChar) (@c:IcaoSearchCurrentIcao) (>@c:WaypointAirportICAO))%((@c:WaypointAirportRunwaysNumber) 0 >)%{end}%((@c:WaypointAirportRunwaysNumber) 0 ==)%{if}\n-NONE-%{end}%{if}%(0 sp1)%{loop}%(l1 (>@c:WaypointAirportCurrentRunway))\n\t\t\t\t%((@c:WaypointAirportRunwayDesignation))%!s!%(l1 ++ s1)\n\t\t\t\t%{next}%{end}

I've got it working, the above code works fine. It was a problem that I had a updating reverse to waypointairport somewhere else int he same gauge that was firing and preventing me from retrieving anything from that code. A few if statements fixed it all.Now all I need to do is figure out how to split the two runways that are put together in AirportrunwayDesignation. :( Thank You Jan.

Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

What are you trying to do with %((@c:WaypointAirportRunwaysNumber) 0 >) positioned where it is in your code?

  • Author
  • Commercial Member
What are you trying to do with %((@c:WaypointAirportRunwaysNumber) 0 >) positioned where it is in your code?
Thanks for pointing that out, that was left over from my testing I suppose. It was just a check to stop it from displaying when there were no returns.

Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

Thanks for pointing that out, that was left over from my testing I suppose. It was just a check to stop it from displaying when there were no returns.
It was probably in the wrong place to do that.... You might still want to keep it in there, but try it before your last {if}
  • Author
  • Commercial Member
It was probably in the wrong place to do that.... You might still want to keep it in there, but try it before your last {if}
Well that's where it initially was but some bad cut/pasting and it ended up in the wrong place. I don't need it anymore though I used another variable to control the display.While working with the below code:
%{loop}%(l1 (>@c:IcaoSearchMatchedIcao))%((@c:IcaoSearchCurrentIcao) (>@c:FacilityICAO))\n\t%((@c:IcaoSearchCurrentIdent))%!s!\t\t%((@c:IcaoSearchCurrentIcaoType) ord)%{case}%{:65}ARPT%{:87}WPT%{:78}NDB%{:86}VORDME%{end}\n\t\t\t%((@c:FacilityLatitude) 0 > if{ 'N' } els{ 'S' })%!s!%((@c:FacilityLatitude) abs flr)%!02d!°%((@c:FacilityLatitude) /-/ (@c:FacilityLatitude) /-/ int - 60.019236934915036870791920487336 /-/ * abs)%!02.1f!%((@c:FacilityLongitude) 0 > if{ 'E' } els{ 'W' })%!s!%((@c:FacilityLongitude) abs flr)%!03d!°%((@c:FacilityLongitude) /-/ (@c:FacilityLongitude) /-/ int - 60.019236934915036870791920487336 /-/ * abs)%!3.1f!%(l1 ++ s1 l2 <)%{next}

I get the lattitudes to equal all 0 in the event that there are 2 or more ICAO Search matches, in th event that there is only one it works perfectly. I assume Facility variables can not be looped? :(

Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

What value did you initially store into register 1? Maybe it would be helpful if you showed the entire Element.

  • Author
  • Commercial Member
What value did you initially store into register 1? Maybe it would be helpful if you showed the entire Element.
  <!--=================================================DESIRED-WAYPOINT=================================================--><Element Name="WPT-SEL 1"><Visible>(L:FMC-WPT-SEL,enum) 1 ==</Visible><FormattedText X="275" Y="230" Bright="Yes" Font="Calibri" FontSize="15" Adjust="left" Color="%( (L:FMC-BRT,number) 0x7f + 0x100 * )%"  LineSpacing="15" Tabs="15,16L,55L,75L,265R,270R"><String>\t\tSELECT DESIRED WAYPOINT\t1 / 1%((L:FMC-WPT-SEL,enum) 1 ==)%{if}%( (L:FMC-UNIT-2,number) 0 != (L:FMC-UNIT-4,number) 0 == and if{ 'MNV' (>@c:IcaoSearchStartCursor) }  (L:FMC-UNIT-4,number) 0 != (L:FMC-UNIT-5,number) 0 == and if{ 'AW' (>@c:IcaoSearchStartCursor) }  (L:FMC-UNIT-5,number) 0 != (L:FMC-UNIT-6,number) 0 == and if{ 'W' (>@c:IcaoSearchStartCursor) }  (L:FMC-UNIT-1,number) 0 != if{ (L:FMC-UNIT-1,number) chr (L:FMC-UNIT-2,number) chr (L:FMC-UNIT-3,number) chr (L:FMC-UNIT-4,number) chr (L:FMC-UNIT-5,number) chr scat scat scat scat (>@c:IcaoSearchEnterChar) })%((@c:IcaoSearchMatchedIcaosNumber) s2)%(0 sp1)%{end}%{loop}%(l1 (>@c:IcaoSearchMatchedIcao))%((@c:IcaoSearchCurrentIcao) (>@c:FacilityICAO))\n\t%((@c:IcaoSearchCurrentIdent))%!s!\t\t%((@c:IcaoSearchCurrentIcaoType) ord)%{case}%{:65}ARPT%{:87}WPT%{:78}NDB%{:86}VORDME%{end}\n\t\t\t%((@c:FacilityLatitude) 0 > if{ 'N' } els{ 'S' })%!s!%((@c:FacilityLatitude) abs flr)%!02d!°%((@c:FacilityLatitude) /-/ (@c:FacilityLatitude) /-/ int - 60.019236934915036870791920487336 /-/ * abs)%!02.1f!%((@c:FacilityLongitude) 0 > if{ 'E' } els{ 'W' })%!s!%((@c:FacilityLongitude) abs flr)%!03d!°%((@c:FacilityLongitude) /-/ (@c:FacilityLongitude) /-/ int - 60.019236934915036870791920487336 /-/ * abs)%!3.1f!%(l1 ++ s1 l2 <)%{next}</String></FormattedText><Clip Top="25" Bottom="225"/></Element>

So the value is 0.

Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.