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
Parameter | Type | Description |
---|---|---|
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. |
freqHz | number | The 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
Parameter | Type | Description |
---|---|---|
increment | "COARSE" | "FINE" | Whether to make coarse or fine adjustments |
sign | -1 | 1 | Whether to increment or decrement the code. |
code | number | The current transponder code value. |
transponderPublisher | Publisher <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
Parameter | Type | Description |
---|---|---|
radioIndex | 1 | 2 | The index of the radio to use. |
course | number | The 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
Parameter | Type | Description |
---|---|---|
radioIndex | 1 | 2 | The index of the radio to use |
frequency | number | The nav radio frequency to tune |
Returns
void