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
Name | Type | Default value | Description |
---|---|---|---|
bus | EventBus | undefined | The event bus. |
ahrsIndex | number | Subscribable <number > | undefined | The index of the AHRS that is the source of the attitude data used by this manager. |
pitchUpThreshold | number | Subscribable <number > | 30 | The pitch up threshold for declutter, in degrees. Defaults to 30 degrees. |
pitchDownThreshold | number | Subscribable <number > | -20 | The pitch down threshold for declutter, in degrees. Defaults to -20 degrees. |
rollThreshold | number | Subscribable <number > | 65 | The roll threshold for declutter, in degrees, in either direction. Defaults to 65 degrees. |
pitchUpHysteresis | number | Subscribable <number > | 5 | The hysteresis to apply for the pitch up threshold, in degrees. Defaults to 5 degrees. |
pitchDownHysteresis | number | Subscribable <number > | 5 | The hysteresis to apply for the pitch down threshold, in degrees. Defaults to 5 degrees. |
rollHysteresis | number | Subscribable <number > | 5 | The hysteresis to apply for the roll threshold, in degrees. Defaults to 5 degrees. |
Returns
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