Skip to main content

Epic2 PFD Plugins

Introduction

Epic2 PFD plugins allow you to render the Engine Indication display, and render arbitrary components to the PFD. PFD plugins must implement the Epic2PfdAvionicsPlugin interface.

Importing Libraries

PFD plugins can import and use code from the following framework libraries:

  • @microsoft/msfs-sdk
  • @microsoft/msfs-epic2-pfd
  • @microsoft/msfs-epic2-shared

When building your plugin, you should configure your build tools to consume the above libraries as global externals.

Binder

PFD plugins are only passed the references passed to all Epic2 plugins

PFD Engine Indication Display

By default, the Epic2 does not include any Engine Indications, and so developers must create their own EIS.

You can render components to the PFD's engine instrument display using the PFD plugin's renderEIS() method. There are no limits to the number or types of components that can be rendered. These will be rendered to the EngineSection div of the PFD, after the Epic2 has initialised.