Skip to main content

Class: PfdDeclutterManager

A manager for the PFD declutter feature. Keeps track of whether the PFD should be decluttered due to unusual airplane attitudes and exposes that information as a subscribable through the declutter property.

Constructors

constructor

new PfdDeclutterManager(bus, ahrsIndex, pitchUpThreshold?, pitchDownThreshold?, rollThreshold?, pitchUpHysteresis?, pitchDownHysteresis?, rollHysteresis?): PfdDeclutterManager

Constructor.

Parameters

NameTypeDefault valueDescription
busEventBusundefinedThe event bus.
ahrsIndexnumber | Subscribable<number>undefinedThe index of the AHRS that is the source of the attitude data used by this manager.
pitchUpThresholdnumber | Subscribable<number>30The pitch up threshold for declutter, in degrees. Defaults to 30 degrees.
pitchDownThresholdnumber | Subscribable<number>-20The pitch down threshold for declutter, in degrees. Defaults to -20 degrees.
rollThresholdnumber | Subscribable<number>65The roll threshold for declutter, in degrees, in either direction. Defaults to 65 degrees.
pitchUpHysteresisnumber | Subscribable<number>5The hysteresis to apply for the pitch up threshold, in degrees. Defaults to 5 degrees.
pitchDownHysteresisnumber | Subscribable<number>5The hysteresis to apply for the pitch down threshold, in degrees. Defaults to 5 degrees.
rollHysteresisnumber | Subscribable<number>5The hysteresis to apply for the roll threshold, in degrees. Defaults to 5 degrees.

Returns

PfdDeclutterManager

Defined in

src/garminsdk/components/nextgenpfd/PfdDeclutterManager.ts:48

Properties

declutter

Readonly declutter: Subscribable<boolean>

Whether the PFD should be decluttered.

Defined in

src/garminsdk/components/nextgenpfd/PfdDeclutterManager.ts:11

Methods

destroy

destroy(): void

Destroys this manager.

Returns

void

Defined in

src/garminsdk/components/nextgenpfd/PfdDeclutterManager.ts:122


init

init(): void

Initializes this manager. Once initialized, this manager will automatically keep track of whether the PFD should be decluttered until it is destroyed.

Returns

void

Throws

Error if this manager has been destroyed.

Defined in

src/garminsdk/components/nextgenpfd/PfdDeclutterManager.ts:72