msfs2020-go icon indicating copy to clipboard operation
msfs2020-go copied to clipboard

Flight path support

Open maartenvr98 opened this issue 4 years ago • 5 comments

Is it possible to view you're current flight path and waypoints?

maartenvr98 avatar Aug 26 '20 10:08 maartenvr98

yea, looking into that next.

there must be some way to get the waypoints via simconnect api. displaying them would/should be easy then.

lian avatar Aug 26 '20 13:08 lian

Looks like you can get at the next waypoints lan/lon using

type NextWaypoint struct {
	simconnect.RecvSimobjectDataByType
	Latitude  float64 `name:"GPS WP NEXT LAT" unit:"degrees"`
	Longitude float64 `name:"GPS WP NEXT LON" unit:"degrees"`
}

rikkuness avatar Aug 27 '20 17:08 rikkuness

@rikkuness yea, you also didn't see variables to get all points?

lian avatar Aug 27 '20 20:08 lian

Not that I've seen so far, there's a variable to get the number of GPS waypoints, and ones to get previous and next waypoint lat/lon.

I thought there might be another API to query for a full flight plan, but all the flight plan API's seem to relate specifically to AI flight plans.

rikkuness avatar Aug 27 '20 20:08 rikkuness

That would be awesome :-)

Jonas1898 avatar Sep 06 '20 13:09 Jonas1898