Skip to main content

Class: WT21NavToNavManager

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:14

NavToNav manager using the state pattern

Implements​

Constructors​

Constructor​

new WT21NavToNavManager(bus, apValues, messageService): WT21NavToNavManager

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:28

Parameters​

ParameterType
busEventBus
apValuesAPValues
messageServiceMessageService

Returns​

WT21NavToNavManager

Properties​

apValues​

readonly apValues: APValues

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:30


isNavToNavManager2​

readonly isNavToNavManager2: true = true

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:16

Flags this object as a NavToNavManager2.

Implementation of​

NavToNavManager2.isNavToNavManager2


messageService​

readonly messageService: MessageService

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:31

Methods​

changeState()​

changeState(newState): void

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:129

Changes to next state. Meant to be called by the state instances themselves.

Parameters​

ParameterTypeDescription
newStateNavToNavStatenewState

Returns​

void


getActiveNavSourceType()​

getActiveNavSourceType(): NavSourceType | undefined

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:118

Returns​

NavSourceType | undefined


getApproachFrequency()​

getApproachFrequency(): number | null

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:98

Returns​

number | null


getArmableLateralMode()​

getArmableLateralMode(): number

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:73

Gets the autopilot lateral mode that can be armed while waiting for this manager to switch CDI source, or APLateralModes.NONE if no modes can be armed.

Returns​

number

The autopilot lateral mode that can be armed while waiting for this manager to switch CDI source, or APLateralModes.NONE if no modes can be armed.

Implementation of​

NavToNavManager2.getArmableLateralMode


getArmableNavRadioIndex()​

getArmableNavRadioIndex(): -1 | NavRadioIndex

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:68

Gets the index of the NAV radio that can be armed for a CDI source switch by this manager, or -1 if a CDI source switch cannot be armed.

Returns​

-1 | NavRadioIndex

The index of the NAV radio that can be armed for a CDI source switch by this manager, or -1 if a CDI source switch cannot be armed.

Implementation of​

NavToNavManager2.getArmableNavRadioIndex


getArmableVerticalMode()​

getArmableVerticalMode(): number

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:78

Gets the autopilot vertical mode that can be armed while waiting for this manager to switch CDI source, or APVerticalModes.NONE if no modes can be armed.

Returns​

number

The autopilot vertical mode that can be armed while waiting for this manager to switch CDI source, or APVerticalModes.NONE if no modes can be armed.

Implementation of​

NavToNavManager2.getArmableVerticalMode


getCurrentHeading()​

getCurrentHeading(): number

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:123

Returns​

number


getLocalizerCourse()​

getLocalizerCourse(): number

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:108

Returns​

number


getNav1LateralDeviation()​

getNav1LateralDeviation(): number

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:113

Returns​

number


getScalingLabel()​

getScalingLabel(): CDIScaleLabel | undefined

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:103

Returns​

CDIScaleLabel | undefined


isTransferInProgress()​

isTransferInProgress(): boolean

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:83

Checks whether a CDI source switch initiated by this manager is currently in progress.

Returns​

boolean

Whether a CDI source switch initiated by this manager is currently in progress.

Implementation of​

NavToNavManager2.isTransferInProgress


onAfterUpdate()​

onAfterUpdate(): void

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:93

A method that is called on every autopilot update cycle after the autopilot directors are updated.

Returns​

void

Implementation of​

NavToNavManager2.onAfterUpdate


onBeforeUpdate()​

onBeforeUpdate(): void

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:88

A method that is called on every autopilot update cycle before the autopilot directors are updated.

Returns​

void

Implementation of​

NavToNavManager2.onBeforeUpdate


onTransferred()​

onTransferred(): void

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21NavToNavManager.ts:18

A callback function that is called when this manager has completed a CDI source switch.

Returns​

void

Implementation of​

NavToNavManager2.onTransferred