Class: DefaultComRadioSpacingDataProvider
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/ComRadioSpacingDataProvider.ts:26
A default implementation of ComRadioSpacingDataProvider.
Implements
Constructors
Constructor
new DefaultComRadioSpacingDataProvider(
bus
,config
):DefaultComRadioSpacingDataProvider
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/ComRadioSpacingDataProvider.ts:47
Creates a new instance of DefaultComRadioSpacingDataProvider.
Parameters
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
config | RadiosConfig | A configuration object defining options for radios. |
Returns
DefaultComRadioSpacingDataProvider
Properties
com1Spacing
readonly
com1Spacing:Subscribable
<ComSpacing
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/ComRadioSpacingDataProvider.ts:29
The spacing mode of the COM1 radio. If COM1 is not supported, then this value defaults to ComSpacing.Spacing25Khz
.
Implementation of
ComRadioSpacingDataProvider
.com1Spacing
com2Spacing
readonly
com2Spacing:Subscribable
<ComSpacing
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/ComRadioSpacingDataProvider.ts:33
The spacing mode of the COM2 radio. If COM2 is not supported, then this value defaults to ComSpacing.Spacing25Khz
.
Implementation of
ComRadioSpacingDataProvider
.com2Spacing
combinedComSpacing
readonly
combinedComSpacing:Subscribable
<ComSpacing
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/ComRadioSpacingDataProvider.ts:36
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
Methods
destroy()
destroy():
void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/ComRadioSpacingDataProvider.ts:138
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
init()
init(
paused
):void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/ComRadioSpacingDataProvider.ts:70
Initializes this data provider. Once initialized, this data provider will continuously update its data until paused or destroyed.
Parameters
Parameter | 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.
pause()
pause():
void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/ComRadioSpacingDataProvider.ts:119
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.
resume()
resume():
void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/ComRadioSpacingDataProvider.ts:100
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.