Skip to main content

Class: RadioUtils

Defined in: src/sdk/utils/radio/RadioUtils.ts:2

A collection of helper functions dealing with radios and frequencies.

Constructors​

Constructor​

new RadioUtils(): RadioUtils

Returns​

RadioUtils

Methods​

isAdfFrequency()​

static isAdfFrequency(freq): boolean

Defined in: src/sdk/utils/radio/RadioUtils.ts:66

Checks whether a frequency is an ADF frequency.

Parameters​

ParameterTypeDescription
freqnumberThe frequency to check, in kilohertz.

Returns​

boolean

Whether the specified frequency is an ADF frequency.


isCom25Frequency()​

static isCom25Frequency(freq): boolean

Defined in: src/sdk/utils/radio/RadioUtils.ts:51

Checks whether a frequency is a 25 kHz-spacing COM frequency.

Parameters​

ParameterTypeDescription
freqnumberThe frequency to check, in megahertz.

Returns​

boolean

Whether the specified frequency is a 25 kHz-spacing COM frequency.


isCom833Frequency()​

static isCom833Frequency(freq): boolean

Defined in: src/sdk/utils/radio/RadioUtils.ts:36

Checks whether a frequency is a 8.33 kHz-spacing COM frequency.

Parameters​

ParameterTypeDescription
freqnumberThe frequency to check, in megahertz.

Returns​

boolean

Whether the specified frequency is a 8.33 kHz-spacing COM frequency.


isLocalizerFrequency()​

static isLocalizerFrequency(freq): boolean

Defined in: src/sdk/utils/radio/RadioUtils.ts:23

Checks if frequency is a localizer frequency based on the number.

Parameters​

ParameterTypeDescription
freqnumberThe 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.


isNavFrequency()​

static isNavFrequency(freq): boolean

Defined in: src/sdk/utils/radio/RadioUtils.ts:8

Checks whether a frequency is a NAV frequency.

Parameters​

ParameterTypeDescription
freqnumberThe frequency to check, in megahertz.

Returns​

boolean

Whether the specified frequency is a NAV frequency.