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.

NearestAirportCurrent...

Featured Replies

I am looking for help on 2 fronts: @c:GeoCalc and on what to use to determine the frequency of transponder query rate. I made a transponder that has a light to indicate squawk transmission, or incoming queries. Originally I had a random number (Doug

  • Author

I would use nearest airspace, as using nearest airport does not give the airspace type ( Class C or better ), just runway type. ( Cement etc. )Coding in general terms..This should be updated continously (It really doesn't take too much off FRates. While setting a LAT/LON might work using GEO CALC you would never know when you left one airspace for another.. Unless...... See #2 --#1 Constant updateTell GPS where you are for the search.(A:Plane Latitude, Radians) -> NearestAirspaceCurrentLatitude(A:Plane Longitude, Radians) -> NearestAirspaceCurrentLongitudeTell GPS how far & the amount of airspace to search for.. Bummer - the airspace type cannot be filtered yet.200 or ? -> NearestAirspaceMaximumItemsLine of site -or- Fixed ->NearestAirspaceMaximumDistanceStart a loop to check for ASPC better/= than Class C.Loop# (start at 0) -> NearestAirspaceCurrentLineCheck current selected airspace if Class C or better-NearestAirspaceCurrentType > 0 or < 5 if { NearestAirspaceCurrentNearDistance,Nmiles -> L:MY_XPNDER_DIST_VAR Start "search" over again, Loop# @ zero }els{ Increment loop or reset if @ end of list - Loop# ++ s1 >Loop# l1 NearestAirspaceItemsNumber 1 - > if{ 0 -> L:MY_XPNDER_DIST_VAR, 0 -> Loop#, Start "search" over again } els { Return Loop } #2. Single find, update when range is greater than a set mileage after a airspace has been found. Tell GPS where you are for the search.(A:Plane Latitude, Radians) -> NearestAirspaceCurrentLatitude(A:Plane Longitude, Radians) -> NearestAirspaceCurrentLongitudeTell GPS how far & the amount of airspace to search for.. Bummer - the airspace type cannot be filtered yet.200 Or ? -> NearestAirspaceMaximumItemsLine of site -or- Fixed ->NearestAirspaceMaximumDistanceStart a loop to check for ASPC better/= than Class C.Loop# (start at 0) -> NearestAirspaceCurrentLineCheck current selected airspace if Class C or better-NearestAirspaceCurrentType > 0 or < 5 if { NearestAirspaceCurrentLatitude -> L:My_LATNearestAirspaceCurrentLongitude -> L:My_LON Stop search}els{ Increment loop or reset if @ end of list - Loop# ++ s1 >Loop# l1 NearestAirspaceItemsNumber 1 - > if{ 0 -> L:My_LAT, 0 ->L:My_LON } els { Return Loop }L:My_Lat = 0 and L:My_Lon = 0 if{ Reset everything and start over }els{ L:My_LAT -> GeoCalcLatitude1L:My_LON -> GeoCalcLongitude1(A:Plane Latitude, Radians) -> GeoCalcLatitude2(A:Plane Longitude, Radians) -> GeoCalcLongitude2 }GeoCalcDistance,Nmile L:My_RESET,Dist > if{ Reset everything and start over } els{ GeoCalcDistance,Nmile -> L:MY_XPNDER_DIST_VAR }I hope this can help and can read the psuedo code. It's generally based on some things I've been working on which work, did not test this, just used the SDK for reference.RomanProud "TEAM AVSIM" RTW race member.

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

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.