Skip to main content

Class: G3XRadioUtils

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/G3XRadioUtils.ts:6

A utility class for working with G3X radios.

Constructors

Constructor

new G3XRadioUtils(): G3XRadioUtils

Returns

G3XRadioUtils

Methods

setComRadioReceiveState()

static setComRadioReceiveState(radioSimIndex, receive): Promise<void>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/G3XRadioUtils.ts:33

Sets the receiving state of a COM radio.

Parameters

ParameterTypeDescription
radioSimIndexComRadioIndexThe sim index of the radio to set the receiving state of.
receivebooleanThe receiving state to set.

Returns

Promise<void>

A Promise which is fulfilled when the command to set the receiving state has been sent.


setMarkerBeaconSoundState()

static setMarkerBeaconSoundState(): Promise<void>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/G3XRadioUtils.ts:51

Sets the marker beacon enabled or disabled.

Returns

Promise<void>

A Promise which is fulfilled when the command to set marker beacon sound state has been sent.


setNavRadioIdentReceiveState()

static setNavRadioIdentReceiveState(radioSimIndex, receive): Promise<void>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/G3XRadioUtils.ts:43

Sets the receiving ident audio from a NAV radio.

Parameters

ParameterTypeDescription
radioSimIndexNavRadioIndexThe simulation index of the radio.
receivebooleanThe receiving state to set.

Returns

Promise<void>

  • A Promise which is fulfilled when the command to set the receiving state has been sent.

setTransmittingComIndex()

static setTransmittingComIndex(radioSimIndex): Promise<void>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Radio/G3XRadioUtils.ts:13

Sets the transmitting COM radio.

Parameters

ParameterTypeDescription
radioSimIndexComRadioIndexThe sim index of the radio to set as transmitting.

Returns

Promise<void>

A Promise which is fulfilled when the command to set the transmitting radio has been sent.