Skip to main content

Class: Epic2RadioUtils

Defined in: workingtitle-instruments-epic2/shared/Radio/Epic2RadioUtils.ts:8

A utility class for working with KTR 2280 radios.

Constructors

Constructor

new Epic2RadioUtils(): Epic2RadioUtils

Returns

Epic2RadioUtils

Methods

changeActiveAdfFrequency()

static changeActiveAdfFrequency(freqComponent, dir, freqHz): void

Defined in: workingtitle-instruments-epic2/shared/Radio/Epic2RadioUtils.ts:16

Increments or decrements the active ADF frequency.

Parameters

ParameterTypeDescription
freqComponent"LEFT" | "RIGHT"Whether to adjust the leftmost three or rightmost two digits of the frequency.
dir"INC" | "DEC"Whether to increment or decrement the frequency.
freqHznumberThe frequency, in hertz.

Returns

void


changeXpdrCode()

static changeXpdrCode(increment, sign, code, transponderPublisher): void

Defined in: workingtitle-instruments-epic2/shared/Radio/Epic2RadioUtils.ts:54

Increments or decrements the transponder code.

Parameters

ParameterTypeDescription
increment"COARSE" | "FINE"Whether to make coarse or fine adjustments
sign-1 | 1Whether to increment or decrement the code.
codenumberThe current transponder code value.
transponderPublisherPublisher<Epic2TransponderEvents>A Epic2TransponderEvents publisher.

Returns

void


setActiveNavCourse()

static setActiveNavCourse(radioIndex, course): void

Defined in: workingtitle-instruments-epic2/shared/Radio/Epic2RadioUtils.ts:83

Sets the specified navigation radio course.

Parameters

ParameterTypeDescription
radioIndex1 | 2The index of the radio to use.
coursenumberThe course in degrees.

Returns

void


setActiveNavFrequencyMhz()

static setActiveNavFrequencyMhz(radioIndex, frequency): void

Defined in: workingtitle-instruments-epic2/shared/Radio/Epic2RadioUtils.ts:74

Tunes the specified navigation radio to the chosen frequency

Parameters

ParameterTypeDescription
radioIndex1 | 2The index of the radio to use
frequencynumberThe nav radio frequency to tune

Returns

void