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.

What's Up With GPS_WP_DISTANCE???

Featured Replies

  • Moderator

I was trying to add a GPS Waypoint Distance to my C gauge this afternoon, but regardless of Waypoint selected, the value return for GPS_WP_DISTANCE is always "835" (meters)... ???For example, from KGYY to WYZZE intersection is 10.7 Nm.Using the handy macros in gauges.h, METER_TO_NAUTIC_MILE( GPS_WP_DISTANCE ) will display .45 Nm... which is, the value being returned for GPS_WP_DISTANCE is "835."From KGYY to LAIRD is 24.6 Nm.The value displayed after conversion is .45 Nm... which is, the same "835" being returned by the variable GPS_WP_DISTANCE...What the heck is this all about?

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
  • Moderator

Since no one answered, I thought I'd add the following. I'm wondering if the reason GPS_WAYPOINT_DISTANCE didn't work is because I didn't "get" the parameter's data via GPS_Args?MOUSE_TOOLTIP_ARGS (GPS_Args)...GPSARG_Get_WP_ID).............MOUSE_TOOLTIP_ARG (MODULE_VAR_NONE, 0, NULL, NULL, NULL,

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
  • Moderator

The solution, as always is the case, was quite simple.Assign a custom variable to the FS variable at First Run:gps_wp_dx = GPS_WP_DISTANCEthen use the custom variable instead. It works like a charm! :)

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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.