Skip to main content

Interface: JetFadecMode

Defined in: src/sdk/fadec/JetFadec.ts:9

A control mode used by a jet FADEC.

Properties

name

readonly name: string

Defined in: src/sdk/fadec/JetFadec.ts:11

The name of this mode.

Methods

accept()

accept(index, throttleLeverPos, throttle, thrust, n1, n1Corrected): boolean

Defined in: src/sdk/fadec/JetFadec.ts:23

Checks whether the FADEC should enter this mode for a specified engine.

Parameters

ParameterTypeDescription
indexnumberThe index of the engine.
throttleLeverPosnumberThe virtual position of the throttle lever, in the range of -1 to +1.
throttlenumberThe current engine throttle setting, in the range of -1 to +1.
thrustnumberThe current net thrust delivered by the engine, in pounds.
n1numberThe current N1 value of the engine, in percent.
n1CorrectednumberThe current corrected N1 value of the engine, in percent.

Returns

boolean

Whether the FADEC should enter this mode for the specified engine.


computeDesiredThrottle()

computeDesiredThrottle(index, throttleLeverPos, throttle, thrust, n1, n1Corrected, dt): number

Defined in: src/sdk/fadec/JetFadec.ts:36

Computes the desired engine throttle setting.

Parameters

ParameterTypeDescription
indexnumberThe index of the engine.
throttleLeverPosnumberThe virtual position of the throttle lever, in the range of -1 to +1.
throttlenumberThe current engine throttle setting, in the range of -1 to +1.
thrustnumberThe current net thrust delivered by the engine, in pounds.
n1numberThe current N1 value of the engine, in percent.
n1CorrectednumberThe current corrected N1 value of the engine, in percent.
dtnumberThe elapsed time since the last FADEC update, in milliseconds.

Returns

number

The desired engine throttle setting, in the range of -1 to +1.


getVisibleThrottlePos()

getVisibleThrottlePos(index, throttleLeverPos): number

Defined in: src/sdk/fadec/JetFadec.ts:44

Gets the visible position of the throttle lever for a specified engine.

Parameters

ParameterTypeDescription
indexnumberThe index of the engine.
throttleLeverPosnumberThe virtual position of the throttle lever, in the range of -1 to +1.

Returns

number

The visible position of the throttle lever, in the range of -1 to +1.