Sign in to follow this  
n4gix

What's Up With GPS_WP_DISTANCE???

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

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,

Share this post


Link to post
Share on other sites

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! :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this