Skip to main content

Class: WT21CourseNeedleNavIndicator

Represent a navigation indicator, like a course needle or bearing pointer. Can only be pointed to 1 nav source at a time. Gives visual components a single thing to subscribe to, while the actual source can be easily changed.

Hierarchy

Constructors

constructor

new WT21CourseNeedleNavIndicator(navSources, displayUnit, bus): WT21CourseNeedleNavIndicator

NavIndicator constructor.

Parameters

NameTypeDescription
navSourcesWT21NavSourcesThe possible nav sources that could be pointed to.
displayUnitWT21DisplayUnitFsInstrumentThe parent display unit.
busEventBusThe bus.

Returns

WT21CourseNeedleNavIndicator

Overrides

NavIndicator.constructor

Defined in

workingtitle-instruments-wt21/shared/Navigation/WT21NavIndicators.ts:86

Properties

activeFrequency

Readonly activeFrequency: Subject<null | number>

The active frequency that the nav source is tuned to. Only for NAV and ADF source types. NAV ACTIVE FREQUENCY, ADF ACTIVE FREQUENCY.

Inherited from

NavIndicator.activeFrequency

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:62


bearing

Readonly bearing: Subject<null | number>

Always points to the curently tuned station or next waypoint/fix. NAV RADIAL, ADF RADIAL

Inherited from

NavIndicator.bearing

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:14


bus

Readonly bus: EventBus

The bus.

Defined in

workingtitle-instruments-wt21/shared/Navigation/WT21NavIndicators.ts:86


course

Readonly course: Subject<null | number>

Either points towards the next waypoint (GPS/FMS), displays the course selected by the course knob (VOR), or displays the fixed course of a localizer (ILS). NAV OBS, L:WTAP_LNav_DTK_Mag

Inherited from

NavIndicator.course

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:20


distance

Readonly distance: Subject<null | number>

DME, distance to the station or next waypoint. Is null when source is NAV and hasDme is false. NAV DME, ADF DISTANCE, L:WTAP_LNav_DIS

Inherited from

NavIndicator.distance

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:43


hasDme

Readonly hasDme: Subject<null | boolean>

Whether the source is receiving a valid DME signal. Only for NAV source types. NAV HAS DME

Inherited from

NavIndicator.hasDme

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:48


hasGlideSlope

Readonly hasGlideSlope: Subject<null | boolean>

Whether the source is receiving glideslope information. Only for NAV source types. NAV HAS GLIDE SLOPE.

Inherited from

NavIndicator.hasGlideSlope

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:75


hasLocalizer

Readonly hasLocalizer: Subject<null | boolean>

Whether the nav source is receiving a valid localizer signal. Only for NAV source types. NAV HAS LOCALIZER

Inherited from

NavIndicator.hasLocalizer

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:38


hasNav

Readonly hasNav: Subject<null | boolean>

Whether the source is receiving a nav signal. Only for NAV source types. NAV HAS NAV.

Inherited from

NavIndicator.hasNav

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:57


ident

Readonly ident: Subject<null | string>

The ICAO ident of the station or waypoint. NAV IDENT, or flight plan

Inherited from

NavIndicator.ident

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:52


isLocalizer

Readonly isLocalizer: Subject<null | boolean>

Whether the tuned station is a localizer or not. This can be true even if hasLocalizer is false, because this can be based on the frequency alone. Only for NAV source types. NAV LOCALIZER.

Inherited from

NavIndicator.isLocalizer

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:33


lateralDeviation

Readonly lateralDeviation: Subject<null | number>

Normalized and scaled lateral deviation (-1, 1). NAV CDI, L:WTAP_LNav_XTK

Inherited from

NavIndicator.lateralDeviation

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:66


lateralDeviationScaling

Readonly lateralDeviationScaling: Subject<null | number>

The current CDI scale, in nautical miles. Only for GPS source types. L:WTAP_LNav_CDI_Scale

Inherited from

NavIndicator.lateralDeviationScaling

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:88


lateralDeviationScalingLabel

Readonly lateralDeviationScalingLabel: Subject<null | string>

A readable string/enum that shows the name of current scaling being applied to lateral deviation. Only for GPS source types. L:WTAP_LNav_CDI_Scale_Label

Inherited from

NavIndicator.lateralDeviationScalingLabel

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:93


localizerCourse

Readonly localizerCourse: Subject<null | number>

The fixed course of a localizer when available (ILS). Is null when hasLocalizer is false. Only for NAV source types. NAV LOCALIZER

Inherited from

NavIndicator.localizerCourse

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:26


Protected Readonly navSources: NavSources<readonly ["NAV1", "NAV2", "ADF", "FMS1", "FMS2"]>

The possible nav sources that could be pointed to.

Inherited from

NavIndicator.navSources

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavIndicators/NavIndicators.ts:42


setters

Protected Readonly setters: Map<keyof NavBaseFields, (value: any) => void>

An automatically generated map of setters to make it easy to set, sub, and unsub, getting around having to call .bind().

Inherited from

NavIndicator.setters

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:110


source

Readonly source: Subscribable<null | NavSourceBase<readonly ["NAV1", "NAV2", "ADF", "FMS1", "FMS2"]>>

The nav source that is feeding data into the indicator fields. Can only be changed with the setSource function.

Inherited from

NavIndicator.source

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavIndicators/NavIndicators.ts:36


standbyPresetSource

Readonly standbyPresetSource: Subject<WT21NavSource>

Defined in

workingtitle-instruments-wt21/shared/Navigation/WT21NavIndicators.ts:75


standbyPresetSourceLabel

Readonly standbyPresetSourceLabel: Subject<string>

Defined in

workingtitle-instruments-wt21/shared/Navigation/WT21NavIndicators.ts:76


timeToGo

Readonly timeToGo: Subject<null | number>

TTG, estimated time remaining until aircraft reaches next fix. // TODO Implement this

Inherited from

NavIndicator.timeToGo

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:78


toFrom

Readonly toFrom: Subject<null | VorToFrom>

Whether course is pointing TO or FROM the station (VOR), or if the aircraft heading is within 90 degress of the desired track (GPS). NAV TOFROM, // TODO FMS VAR?

Inherited from

NavIndicator.toFrom

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:83


verticalDeviation

Readonly verticalDeviation: Subject<null | number>

Normalized and scaled vertical deviation (-1, 1). NAV GLIDE SLOPE ERROR, L:WTAP_VNav_Vertical_Deviation, L:WTAP_LPV_Vertical_Deviation

Inherited from

NavIndicator.verticalDeviation

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavBase.ts:70

Methods

navSwap(): void

Returns

void

Defined in

workingtitle-instruments-wt21/shared/Navigation/WT21NavIndicators.ts:135


presetDecrease

presetDecrease(): void

Returns

void

Defined in

workingtitle-instruments-wt21/shared/Navigation/WT21NavIndicators.ts:151


presetIncrease

presetIncrease(): void

Returns

void

Defined in

workingtitle-instruments-wt21/shared/Navigation/WT21NavIndicators.ts:143


setNewSource

setNewSource(newSourceName): void

Parameters

NameType
newSourceName"NAV1" | "NAV2" | "FMS1"

Returns

void

Defined in

workingtitle-instruments-wt21/shared/Navigation/WT21NavIndicators.ts:112


setSource

setSource(newSourceName): void

Changes the source of this indicator. All subjects will be republished with the current info from the new source.

Parameters

NameTypeDescription
newSourceNamenull | "ADF" | "NAV1" | "NAV2" | "FMS1" | "FMS2"Name of new source, if any.

Returns

void

Inherited from

NavIndicator.setSource

Defined in

workingtitle-instruments-wt21/shared/Navigation/NavIndicators/NavIndicators.ts:51