Skip to main content

Class: NavComInstrument

Defined in: src/sdk/instruments/NavComInstrument.ts:125

The core instrument that will drive all of a system's radios.

Requires that the topics defined in NavComEvents are published to the event bus.

Constructors

Constructor

new NavComInstrument(bus, config, numNavRadios, numComRadios, sync): NavComInstrument

Defined in: src/sdk/instruments/NavComInstrument.ts:144

Create a NavComController.

Parameters

ParameterTypeDefault valueDescription
busEventBusundefinedThe event bus to publish to.
configundefined | NavComConfigundefinedA NavComConfig object defining the radio configuration.
numNavRadiosnumberundefinedThe number of nav radios in the system.
numComRadiosnumberundefinedThe number of com radios in the system.
syncbooleantrueWhether to sync events or not, default true.

Returns

NavComInstrument

Methods

init()

init(): void

Defined in: src/sdk/instruments/NavComInstrument.ts:182

Initialize the instrument.

Returns

void


onUpdate()

onUpdate(): void

Defined in: src/sdk/instruments/NavComInstrument.ts:260

Perform events for the update loop.

Returns

void