Skip to main content

Class: Epic2DuController

Defined in: workingtitle-instruments-epic2/shared/Misc/Epic2DuController.ts:39

Handles the DU bezel buttons interface.

Constructors

Constructor

new Epic2DuController(bus, duIndex, hEventPublisher): Epic2DuController

Defined in: workingtitle-instruments-epic2/shared/Misc/Epic2DuController.ts:51

Constructs a new MFD controller.

Parameters

ParameterTypeDescription
busEventBusAn instance of the EventBus.
duIndexDisplayUnitIndicesThe display unit index for this MFD.
hEventPublisherHEventPublisherThe HEventPublisher.

Returns

Epic2DuController

Methods

mapHEventToSoftKeyEvent()

mapHEventToSoftKeyEvent(hEvent): boolean

Defined in: workingtitle-instruments-epic2/shared/Misc/Epic2DuController.ts:74

Maps an H event to an FmcEvent

Parameters

ParameterTypeDescription
hEventstringthe raw H event string

Returns

boolean

Whether the HEvent is sucessfully matched to a Epic2BezelButtonEvents.

Throws

if the event is invalid or unmapped


getSoftKeyIndexFromSoftKeyHEvent()

static getSoftKeyIndexFromSoftKeyHEvent(hEvent): number

Defined in: workingtitle-instruments-epic2/shared/Misc/Epic2DuController.ts:64

Gets the soft key index number from the soft key HEvent.

Parameters

ParameterTypeDescription
hEventstringThe soft key HEvent.

Returns

number

a number.