Skip to content

Latest commit

 

History

History
88 lines (57 loc) · 5.38 KB

README.md

File metadata and controls

88 lines (57 loc) · 5.38 KB

fs2ff (Flight Simulator to ForeFlight)

What is it?

This is a utility app that connects Microsoft Flight Simulator 2020 with the Electronic Flight Bag (EFB) app ForeFlight, sharing virtual GPS data from the former to the latter. This allows the use of ForeFlight as a navigational aid when simming. Much more cost-effective than flying an actual airplane!

How do I use it?

Simple! Just follow these easy steps:

  1. Start Microsoft Flight Simulator. As soon as you get to the main menu, the game is ready to accept connections.
  2. While waiting for MSFS to start (it takes a while!), download fs2ff.exe from the latest release.
  3. Double-click the file.
  4. If you get a popup window that tells you that "Windows protected your PC", click More info -> Run anyway.
  5. In the fs2ff app, click the big Connect button. Unless anything goes wrong, you will now be connected to MSFS.
  6. To verify the connection, open ForeFlight on your iPad or iPhone and navigate to More -> Devices.
  7. Do not forget to activate Auto Center (upper right corner) in the map view in ForeFlight.
  8. Now go fly!

N.B. Since I have not bothered to create an installer for this app, you will just have to save it somewhere on your harddrive where you can find it again. Why not your desktop? ;)

Ok, but what does it actually do?

The app uses Microsoft's SimConnect SDK to continuously collect data about the player's own aircraft in the game, as well as other traffic around the player, and then broadcast these data so they can be picked up by ForeFlight. This requires that the ForeFlight device is connected to the same Wi-Fi network as the Flight Sim computer. Also, UDP port 49002 must not be blocked by any firewalls.

Does it work with other EFB apps?

SkyDemon

Yes! SkyDemon is compatible with X-Plane, which uses the same format. You will need to enable the "X-Plane" toggle in the "Third Party Devices" settings pane under the cogwheel in SkyDemon. Then, when you start flying, select "Use X-Plane".

Garmin Pilot

Yes! Go to "Settings" -> "Flight Simulation" and enable the "Use Flight Simulator Data" option.

Enroute Flight Navigation

Yes! Go to "Settings" -> "Primary position data source" and select "Traffic data receiver" as the main source. More information can be found in the Enroute Flight Navigation Manual.

Other apps (not verified by me)

  • FlyQ EFB (thanks, @erayymz)
  • FltPlan GO (need to select XPlane as source of GPS data)

Does it work with other flight simulators?

X-Plane

No need for my app. X-Plane already has this broadcast capability built-in, see this support page.

Prepar3D

Should work straight out of the box for P3D 4.0 and up, so no need for my app. For older versions, use FSUIPC. See this support page.

Other flight sims

As of now, no other flight simulators have been tested.

How do I build this?

  1. Download and install .NET Core SDK and Visual Studio Community.
  2. Clone the repo or download and extract a zip.
  3. Install MSFS SDK (see instructions below).
  4. Navigate to the SDK on your hard drive and find the following two files:
    • "MSFS SDK\SimConnect SDK\lib\SimConnect.dll"
    • "MSFS SDK\SimConnect SDK\lib\managed\Microsoft.FlightSimulator.SimConnect.dll"
  5. Create a folder called "lib" in the fs2ff folder (next to fs2ff.sln) and put the two dll:s therein.
  6. Open fs2ff.sln with Visual Studio.
  7. Build by pressing Ctrl-Shift-B.
  8. Or from command-line: dotnet build.
  9. To build a self-contained executable, run: dotnet publish -c Release -r win-x64 /p:PublishSingleFile=true.

Where do I get the MSFS SDK?

  1. Hop into Flight Simulator.
  2. Go to OPTIONS -> GENERAL -> DEVELOPERS and enable DEVELOPER MODE.
  3. You will now have a new menu at the top. Click Help -> SDK Installer.
  4. Let your browser download the installer and run it.
  5. You might get a "Windows protected your PC" popup. If so, click More info -> Run anyway.
  6. Go through the installation wizard and make sure that Core Components is selected.
  7. When finished, you will likely find the SDK installed under "C:\MSFS SDK".

What's with the "Windows protected your PC" popup?

This is Microsoft telling you that the app has not been cryptographically signed. Software that you download from big corporations does not present this behaviour, because these companies typically purchase certificates from trusted Certificate Authorities and sign their binaries before shipping to customers. This is cumbersome and expensive and not in the scope of this open source project. The binaries that I have provided are for convenience. If you do not trust me (and why should you?), you are more than welcome to build from source yourself (see instructions above).

I have problems!

If you are experiencing any technical issues with the app (or if you see potential for other improvements), please open up an issue, and I will be happy to take a look.