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.

Update GPS flight plan

Featured Replies

My goal is to update the GPS flight plan (add, remove waypoints) using C++ code. I used the code sample of the SDK as a base, and I coded a very simple piece of code that is supposed to update the existing flight plan with THE SAME flight plan.The code looks like this:gpsrequest->dwUpdateRequest = 2;gpsrequest->vPosition = gpsinfo->vPosition;gpsrequest->bIsFlightPlanAvailable = TRUE;gpsrequest->bIsDirectTo = FALSE;gpsrequest->lNextWp = gpsinfo->lNextWp;gpsrequest->lWpCounts = gpsinfo->lWpCounts;for (UINT32 i=0; i < gpsrequest->lWpCounts; i++) gpsrequest->pWpData = gpsinfo->pWpData;As you can see, the 'gpsrequest' structure is the mirror of the 'gpsinfo' structure that describes the current flight plan. When this code is executed, the flight plan is still there, but all the waypoint names have disappeared !!Do you know why?Do you know how I can edit the existing flight plan without loosing the waypoint names?Any info is welcome !!Eric

Interesting...In this case, I wonder why Microsoft has provided this code sample in the SDK. But it is not the first time Microsot takes us on an a way that leads nowhere...Eric

Do you mean the example was working in FS2002 and it doesn't work in FS2004? This would be surprising... The GPS system has not changed much between FS2002 and 2004.But who cares? The fact is that the code doesn't work, that's it.Eric (disappointed)

I can also say the code that lets you READ the GPS flight plan is from FS2002 and it still works perfect, even with FSX...

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.