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.

Reading NRST airports using offset 0658

Featured Replies

Can someone help me understand how I can extract this table in Linda's lua action.lua file. I want to display the 6 nearest airports in a Lua display.

 

0658 [120 bytes]

This area provides a table of data about the 6 nearest airports to
the user aircraft, in order nearest to furthest.
This works properly in FSX with Acceleration, and should work
okay in SP2 versions. It should also work in P3D. 1.4.
Each entry is 20 bytes long, consisting of 4 fields as follows:
0 4 bytes ICAO ID of the aircraft. If this is 3 characters only
the 4th will be zero.
4 4 bytes Latitude of the airport, in degrees, as a 32-bit
Float (N positive, S negative).
8 4 bytes Longitude of the airport, in degrees, as a 32-bit
Float (E positive, W negative).
12 4 bytes Altitude of the airport, in feet, as a 32-bit Float.
Intl N/A
16 4 bytes Distance from the user aircraft, in nm.
It is only updated when the user aircraft's Latitude or Longitude
change by one minute or more. If there are less than 6 airports
within the current "reality bubble" the unused entries will be all
zero.
06D0 144 Area

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.