Skip to main content

Class: Epic2PfdControllerPublisher

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/PFD/Epic2PfdControllerPublisher.ts:8

Handles the PFD interface to the PFD controllers.

Constructors

Constructor

new Epic2PfdControllerPublisher(bus, duIndex): Epic2PfdControllerPublisher

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/PFD/Epic2PfdControllerPublisher.ts:84

Constructs a new PFD controller.

Parameters

ParameterTypeDescription
busEventBusThe instrument event bus.
duIndexDisplayUnitIndicesThe display unit index for this PFD.

Returns

Epic2PfdControllerPublisher

Methods

tryHandleHEvent()

tryHandleHEvent(event): boolean

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/PFD/Epic2PfdControllerPublisher.ts:97

Tries to handle PFD controller H events.

Parameters

ParameterTypeDescription
eventstringThe H event name.

Returns

boolean

true if the event was a PFD controller event (no further handling necessary), or false if not (event should be published to the bus).