Class: RadioUtils
A collection of helper functions dealing with radios and frequencies.
Constructors
constructor
• new RadioUtils(): RadioUtils
Returns
Methods
isAdfFrequency
▸ isAdfFrequency(freq
): boolean
Checks whether a frequency is an ADF frequency.
Parameters
Name | Type | Description |
---|---|---|
freq | number | The frequency to check, in kilohertz. |
Returns
boolean
Whether the specified frequency is an ADF frequency.
Defined in
src/sdk/utils/radio/RadioUtils.ts:66
isCom25Frequency
▸ isCom25Frequency(freq
): boolean
Checks whether a frequency is a 25 kHz-spacing COM frequency.
Parameters
Name | Type | Description |
---|---|---|
freq | number | The frequency to check, in megahertz. |
Returns
boolean
Whether the specified frequency is a 25 kHz-spacing COM frequency.
Defined in
src/sdk/utils/radio/RadioUtils.ts:51
isCom833Frequency
▸ isCom833Frequency(freq
): boolean
Checks whether a frequency is a 8.33 kHz-spacing COM frequency.
Parameters
Name | Type | Description |
---|---|---|
freq | number | The frequency to check, in megahertz. |
Returns
boolean
Whether the specified frequency is a 8.33 kHz-spacing COM frequency.
Defined in
src/sdk/utils/radio/RadioUtils.ts:36
isLocalizerFrequency
▸ isLocalizerFrequency(freq
): boolean
Checks if frequency is a localizer frequency based on the number.
Parameters
Name | Type | Description |
---|---|---|
freq | number | The frequency to check, in megahertz. |
Returns
boolean
True if frequency is between 108.1 and 111.95 MHz (inclusive) and the tenths place is odd.
Defined in
src/sdk/utils/radio/RadioUtils.ts:23
isNavFrequency
▸ isNavFrequency(freq
): boolean
Checks whether a frequency is a NAV frequency.
Parameters
Name | Type | Description |
---|---|---|
freq | number | The frequency to check, in megahertz. |
Returns
boolean
Whether the specified frequency is a NAV frequency.
Defined in
src/sdk/utils/radio/RadioUtils.ts:8