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
Parameter | Type | Default value | Description |
---|---|---|---|
bus | EventBus | undefined | The event bus to publish to. |
config | undefined | NavComConfig | undefined | A NavComConfig object defining the radio configuration. |
numNavRadios | number | undefined | The number of nav radios in the system. |
numComRadios | number | undefined | The number of com radios in the system. |
sync | boolean | true | Whether 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