-
Hi, I'm wanting to use the built in distance function "dist" in my plugin to find the distance between two nodes (aircraft to waypoint or waypoint to waypoint). I can do this with stack.stack(dist wpt1 wpt2) but how do I use the output of that in my plugin? Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
jooste
Jun 8, 2023
Replies: 1 comment 3 replies
-
Hi @nl22-nmsu, The stack functions only give their output to the bluesky console. If you want to use the results in your plugin you should directly call the underlying functions, which reside in |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can find a description of the list of attributes of the navigation database on the wiki. All of these are Python lists with the same order. The idea is therefore that you find the index of a named waypoint from
navdb.wpid
, and then use that index to access waypoint property lists like wplat/wplon. The navdb also has a functiongetwpindices(self, wpid, reflat, reflon,crit)
with which you can find the most appropriate waypoint for a given id (many waypoint names are used multiple times across the globe).