Skip to main content

Class: WT21GhostNeedleNavIndicator

Defined in: wtlinesdk/navigation/WTLineNavIndicators.ts:199

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.

Extends​

Constructors​

Constructor​

new WT21GhostNeedleNavIndicator(navSources, bus): WTLineGhostNeedleNavIndicator

Defined in: wtlinesdk/navigation/WTLineNavIndicators.ts:209

NavIndicator constructor.

Parameters​

ParameterTypeDescription
navSourcesWT21NavSourcesThe possible nav sources that could be pointed to.
busEventBusThe bus.

Returns​

WTLineGhostNeedleNavIndicator

Overrides​

NavIndicator.constructor

Properties​

activeFrequency​

readonly activeFrequency: Subject<number | null>

Defined in: wtlinesdk/navigation/NavBase.ts:62

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


bearing​

readonly bearing: Subject<number | null>

Defined in: wtlinesdk/navigation/NavBase.ts:14

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

Inherited from​

NavIndicator.bearing


course​

readonly course: Subject<number | null>

Defined in: wtlinesdk/navigation/NavBase.ts:20

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


distance​

readonly distance: Subject<number | null>

Defined in: wtlinesdk/navigation/NavBase.ts:43

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


hasDme​

readonly hasDme: Subject<boolean | null>

Defined in: wtlinesdk/navigation/NavBase.ts:48

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

Inherited from​

NavIndicator.hasDme


hasGlideSlope​

readonly hasGlideSlope: Subject<boolean | null>

Defined in: wtlinesdk/navigation/NavBase.ts:75

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

Inherited from​

NavIndicator.hasGlideSlope


hasLocalizer​

readonly hasLocalizer: Subject<boolean | null>

Defined in: wtlinesdk/navigation/NavBase.ts:38

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

Inherited from​

NavIndicator.hasLocalizer


hasNav​

readonly hasNav: Subject<boolean | null>

Defined in: wtlinesdk/navigation/NavBase.ts:57

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

Inherited from​

NavIndicator.hasNav


ident​

readonly ident: Subject<string | null>

Defined in: wtlinesdk/navigation/NavBase.ts:52

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

Inherited from​

NavIndicator.ident


isArmed​

readonly isArmed: Subject<boolean>

Defined in: wtlinesdk/navigation/WTLineNavIndicators.ts:201

Nav-to-nav is armed and we are receiving a localizer signal.


isLocalizer​

readonly isLocalizer: Subject<boolean | null>

Defined in: wtlinesdk/navigation/NavBase.ts:33

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


isVisible​

readonly isVisible: Subject<boolean>

Defined in: wtlinesdk/navigation/WTLineNavIndicators.ts:203

If nav-to-nav is armed and waiting for a localizer signal.


lateralDeviation​

readonly lateralDeviation: Subject<number | null>

Defined in: wtlinesdk/navigation/NavBase.ts:66

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

Inherited from​

NavIndicator.lateralDeviation


lateralDeviationScaling​

readonly lateralDeviationScaling: Subject<number | null>

Defined in: wtlinesdk/navigation/NavBase.ts:88

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

Inherited from​

NavIndicator.lateralDeviationScaling


lateralDeviationScalingLabel​

readonly lateralDeviationScalingLabel: Subject<string | null>

Defined in: wtlinesdk/navigation/NavBase.ts:93

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


localizerCourse​

readonly localizerCourse: Subject<number | null>

Defined in: wtlinesdk/navigation/NavBase.ts:26

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


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

Defined in: wtlinesdk/navigation/nav-indicators/NavIndicators.ts:42

The possible nav sources that could be pointed to.

Inherited from​

NavIndicator.navSources


setters​

protected readonly setters: Map<keyof NavBaseFields, { setter: (value) => void; sub?: Subscription; }>

Defined in: wtlinesdk/navigation/NavBase.ts:110

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


source​

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

Defined in: wtlinesdk/navigation/nav-indicators/NavIndicators.ts:36

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

Inherited from​

NavIndicator.source


timeToGo​

readonly timeToGo: Subject<number | null>

Defined in: wtlinesdk/navigation/NavBase.ts:78

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

Inherited from​

NavIndicator.timeToGo


toFrom​

readonly toFrom: Subject<VorToFrom | null>

Defined in: wtlinesdk/navigation/NavBase.ts:83

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


verticalDeviation​

readonly verticalDeviation: Subject<number | null>

Defined in: wtlinesdk/navigation/NavBase.ts:70

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

Methods​

setSource()​

setSource(newSourceName): void

Defined in: wtlinesdk/navigation/nav-indicators/NavIndicators.ts:51

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

Parameters​

ParameterTypeDescription
newSourceName"ADF" | "NAV1" | "NAV2" | "FMS1" | "FMS2" | nullName of new source, if any.

Returns​

void

Inherited from​

NavIndicator.setSource