msfs2020-go
msfs2020-go copied to clipboard
Flight path support
Is it possible to view you're current flight path and waypoints?
yea, looking into that next.
there must be some way to get the waypoints via simconnect api. displaying them would/should be easy then.
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 yea, you also didn't see variables to get all points?
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.
That would be awesome :-)