Class: DefaultComRadioSpacingDataProvider
A default implementation of ComRadioSpacingDataProvider.
Implements
Constructors
constructor
• new DefaultComRadioSpacingDataProvider(bus
, config
): DefaultComRadioSpacingDataProvider
Creates a new instance of DefaultComRadioSpacingDataProvider.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
config | RadiosConfig | A configuration object defining options for radios. |
Returns
DefaultComRadioSpacingDataProvider
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Radio/ComRadioSpacingDataProvider.ts:47
Properties
com1Spacing
• Readonly
com1Spacing: Subscribable
<ComSpacing
>
The spacing mode of the COM1 radio. If COM1 is not supported, then this value defaults to ComSpacing.Spacing25Khz
.
Implementation of
ComRadioSpacingDataProvider.com1Spacing
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Radio/ComRadioSpacingDataProvider.ts:29
com2Spacing
• Readonly
com2Spacing: Subscribable
<ComSpacing
>
The spacing mode of the COM2 radio. If COM2 is not supported, then this value defaults to ComSpacing.Spacing25Khz
.
Implementation of
ComRadioSpacingDataProvider.com2Spacing
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Radio/ComRadioSpacingDataProvider.ts:33
combinedComSpacing
• Readonly
combinedComSpacing: Subscribable
<ComSpacing
>
The combined spacing mode of all supported COM radios. If any supported COM radio is in 8.33 kHz mode, then the
combined spacing mode is ComSpacing.Spacing833Khz
. Otherwise, the combined spacing mode is
ComSpacing.Spacing25Khz
. If no COM radios are supported, then this value defaults to ComSpacing.Spacing25Khz
.
Implementation of
ComRadioSpacingDataProvider.combinedComSpacing
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Radio/ComRadioSpacingDataProvider.ts:36
Methods
destroy
▸ destroy(): void
Destroys this data provider. Once destroyed, this data provider will no longer update its provided data, and can no longer be paused or resumed.
Returns
void
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Radio/ComRadioSpacingDataProvider.ts:138
init
▸ init(paused?
): void
Initializes this data provider. Once initialized, this data provider will continuously update its data until paused or destroyed.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
paused | boolean | false | Whether to initialize this data provider as paused. If true , this data provider will provide an initial set of data but will not update the provided data until it is resumed. Defaults to false . |
Returns
void
Throws
Error if this data provider is dead.
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Radio/ComRadioSpacingDataProvider.ts:70
pause
▸ pause(): void
Pauses this data provider. Once paused, this data provider will not update its data until it is resumed.
Returns
void
Throws
Error if this data provider is dead.
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Radio/ComRadioSpacingDataProvider.ts:119
resume
▸ resume(): void
Resumes this data provider. Once resumed, this data provider will continuously update its data until paused or destroyed.
Returns
void
Throws
Error if this data provider is dead.
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Radio/ComRadioSpacingDataProvider.ts:100