Skip to main content

Class: EspPitchModule

Defined in: src/garminsdk/esp/modules/EspPitchModule.ts:83

A pitch engagement module for Garmin ESP systems. The module applies a force to the pitch control axis to combat excessive pitch angles in one direction (either excessive pitch up or pitch down).

Implements

Constructors

Constructor

new EspPitchModule(id, options): EspPitchModule

Defined in: src/garminsdk/esp/modules/EspPitchModule.ts:105

Creates a new instance of EspPitchModule.

Parameters

ParameterTypeDescription
idstringThis module's ID.
optionsReadonly<EspPitchModuleOptions>Options with which to configure the module.

Returns

EspPitchModule

Properties

id

readonly id: string

Defined in: src/garminsdk/esp/modules/EspPitchModule.ts:105

This module's ID.

Implementation of

EspModule.id

Methods

getEngageData()

getEngageData(): Readonly<EspPitchModuleEngageData>

Defined in: src/garminsdk/esp/modules/EspPitchModule.ts:123

Gets data describing this module's engagement state.

Returns

Readonly<EspPitchModuleEngageData>

Data describing this module's engagement state.


isEngaged()

isEngaged(): boolean

Defined in: src/garminsdk/esp/modules/EspPitchModule.ts:115

Checks if this module is engaged.

Returns

boolean

Whether this module is engaged.

Implementation of

EspModule.isEngaged


onDestroy()

onDestroy(): void

Defined in: src/garminsdk/esp/modules/EspPitchModule.ts:171

A method that is called when this module's parent system is destroyed.

Returns

void

Implementation of

EspModule.onDestroy


onInit()

onInit(): void

Defined in: src/garminsdk/esp/modules/EspPitchModule.ts:128

A method that is called when this module is attached to an initialized system, or when this module's parent system is initialized.

Returns

void

Implementation of

EspModule.onInit


onPause()

onPause(): void

Defined in: src/garminsdk/esp/modules/EspPitchModule.ts:166

A method that is called when this module's parent system is paused.

Returns

void

Implementation of

EspModule.onPause


onUpdate()

onUpdate(operatingMode, data, forceController): void

Defined in: src/garminsdk/esp/modules/EspPitchModule.ts:133

A method that is called every time this module's parent system is updated.

Parameters

ParameterTypeDescription
operatingModeEspOperatingModeThe parent system's current operating mode.
dataReadonly<EspData>The data provided by the parent system.
forceControllerEspForceControllerA controller for control axis forces applied by the parent system.

Returns

void

Implementation of

EspModule.onUpdate