Class: NavComInstrument
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
Create a NavComController.
Parameters
Name | 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
Defined in
src/sdk/instruments/NavComInstrument.ts:144
Methods
init
▸ init(): void
Initialize the instrument.
Returns
void
Defined in
src/sdk/instruments/NavComInstrument.ts:182
onUpdate
▸ onUpdate(): void
Perform events for the update loop.
Returns
void
Defined in
src/sdk/instruments/NavComInstrument.ts:260