Skip to main content

Epic2 Lower MFD Plugins

Introduction

Epic2 Upper MFD plugins allow you to override the default Epic2 fadec, provide aircraft climb performance information for climb predictions, override the default autothrottle options, and to render other arbitrary components. These plugins must implement the Epic2UpperMfdAvionicsPlugin interface.

Importing Libraries

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

  • @microsoft/msfs-sdk
  • @microsoft/msfs-epic2-upper-mfd
  • @microsoft/msfs-epic2-shared

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

Binder

Upper MFD plugins are only passed the references passed to all Epic2 plugins

Overriding FADEC

The Epic2 by default includes a basic jet and turboprop FADEC which is selected based on the aircraft configuration in the sim. These FADECs are intended for initial aircraft bring-up only.

To override the default FADEC, you must use the getFadec() method, and set it to return a class which implements the Epic2Fadec interface.

Providing climb performance

For the Epic2 to provide accurate climb predictions, it requires developers to provide a function to get the predicted climb rate based on the aircraft's current pressure altitude in feet and weight in pounds - this function should then return a climb rate, based on ISA conditions, in feet per minute.

To do so, developers must create a getClimbRate(pressureAlt: number, weightLbs: number): number function, which takes the current pressure altitude and weight and returns the climb rate.

Overriding autopilot options

While the default autopilot options are suitable for most aircraft, some aircraft may require autopilot options to be overridden so developers can better tune the autopilot PIDs.

To do so, use the getAutothrottleOptions() function and return an AutothrottleOptions interface with the configured options.