Skip to main content

Type Alias: EspControlInputManagerAxisIncrOptions

EspControlInputManagerAxisIncrOptions = object

Defined in: src/garminsdk/esp/EspControlInputManager.ts:27

Control axis increment logic options for a EspControlInputManager.

Properties

baseIncr?

optional baseIncr: number

Defined in: src/garminsdk/esp/EspControlInputManager.ts:33

The base amount to increment the input control axis in response to incrementing/decrementing key events, scaled such that 1 equals the amount of travel from the neutral position to maximum deflection (on either side). Defaults to 0.03136 for the pitch axis or 0.06272 for the roll axis.


keyReleaseThreshold?

optional keyReleaseThreshold: number

Defined in: src/garminsdk/esp/EspControlInputManager.ts:52

The maximum amount of time, in milliseconds, allowed between two consecutive incrementing/decrementing key events while the associated key is considered to be held down. Defaults to 200.


keyTimingFactor()?

optional keyTimingFactor: (heldTime) => number

Defined in: src/garminsdk/esp/EspControlInputManager.ts:61

A function that computes a scaling factor to apply to the input control axis increment based on how long the triggering key event's associated key has been held down.

Parameters

ParameterTypeDescription
heldTimenumberThe amount of time that the key has been held down, in milliseconds.

Returns

number

The scaling factor to apply to the input control axis increment given the specified amount of time the key has been held down.


neutralEpsilon?

optional neutralEpsilon: number

Defined in: src/garminsdk/esp/EspControlInputManager.ts:73

The tolerance to use when determing if the input control axis position is near neutral, scaled such that 1 equals the amount of travel from the neutral position to maximum deflection (on either side). Defaults to 0.001.


neutralFactor?

optional neutralFactor: number

Defined in: src/garminsdk/esp/EspControlInputManager.ts:67

The scaling factor to apply to the input control axis increment when the input control axis position is near the neutral position and the triggering key event's associated key is not considered held down. Defaults to 4.


oneEighthTas?

optional oneEighthTas: number

Defined in: src/garminsdk/esp/EspControlInputManager.ts:46

The true airspeed, in knots, at which the input control axis increment is reduced to one eighth its original value. Will be clamped to be greater than oneHalfTas. Defaults to 0.


oneHalfTas?

optional oneHalfTas: number

Defined in: src/garminsdk/esp/EspControlInputManager.ts:40

The true airspeed, in knots, at which the input control axis increment is reduced to one half its original value. A value of less than or equal to zero prevents any adjustment of the increment based on true airspeed. Defaults to 0.