Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSFS2020 / Enroute Android - not all traffic will be seen #49

Open
cro4711 opened this issue Aug 3, 2021 · 3 comments
Open

MSFS2020 / Enroute Android - not all traffic will be seen #49

cro4711 opened this issue Aug 3, 2021 · 3 comments

Comments

@cro4711
Copy link

cro4711 commented Aug 3, 2021

fs2ff connects to Enroute without any issues and shows a lot of traffic on the ground but only some traffic in the air.
Any ideas what's going wrong?

@cro4711
Copy link
Author

cro4711 commented Aug 3, 2021

Seems to be aircraft with missing text marked in the image are not shown.
The aircraft on ground is shown, the other one in the air not.

c1

@cro4711
Copy link
Author

cro4711 commented Aug 3, 2021

I've added some debug statements to the code and found, that really only traffic with nameplates are received from MSFS2020.

So it is not a Enroute or Foreflight issue, it's a issue that FS2020 doesn't send the SimobjectData to fs2ff.

if (data.dwRequestID == (uint)REQUEST.TrafficObjectBase + data.dwObjectID &&
data.dwDefineID == (uint)DEFINITION.Traffic &&
data.dwObjectID != SimConnectImpl.SIMCONNECT_OBJECT_ID_USER &&
data.dwData?.FirstOrDefault() is Traffic tfk)
{
Debug.WriteLine("Debug traffic received " + tfk.Altitude + " Airline: " + tfk.Airline + " Flight: " + tfk.FlightNumber);
await TrafficReceived.RaiseAsync(tfk, data.dwObjectID).ConfigureAwait(false);
// here only traffic with nameplates is seen even if there are a lot of airplanes in the air without a name defined.
}

@cro4711
Copy link
Author

cro4711 commented Aug 3, 2021

#26 (comment)

seems to be the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant