Interface: TurbopropFadecMode
Defined in: src/sdk/fadec/TurbopropFadec.ts:9
A control mode used by a turboprop FADEC.
Properties
name
readonly
name:string
Defined in: src/sdk/fadec/TurbopropFadec.ts:11
The name of this mode.
Methods
accept()
accept(
index
,throttleLeverPos
,throttle
,torque
,ng
,ngCorrected
):boolean
Defined in: src/sdk/fadec/TurbopropFadec.ts:23
Checks whether the FADEC should enter this mode for a specified engine.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the engine. |
throttleLeverPos | number | The virtual position of the throttle lever, in the range of -1 to +1. |
throttle | number | The current engine throttle setting, in the range of -1 to +1. |
torque | number | The current torque delivered by the engine, as a percent of maximum torque, in the range [0, 1]. |
ng | number | The current gas generator speed of the engine, in percent. |
ngCorrected | number | The current corrected ng value of the engine, in percent. |
Returns
boolean
Whether the FADEC should enter this mode for the specified engine.
computeDesiredThrottle()
computeDesiredThrottle(
index
,throttleLeverPos
,throttle
,torque
,ng
,ngCorrected
,dt
):number
Defined in: src/sdk/fadec/TurbopropFadec.ts:36
Computes the desired engine throttle setting.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the engine. |
throttleLeverPos | number | The virtual position of the throttle lever, in the range of -1 to +1. |
throttle | number | The current engine throttle setting, in the range of -1 to +1. |
torque | number | The current torque delivered by the engine, as a percent of maximum torque, in the range [0, 1]. |
ng | number | The current gas generator speed of the engine, in percent. |
ngCorrected | number | The current corrected ng value of the engine, in percent. |
dt | number | The 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/TurbopropFadec.ts:44
Gets the visible position of the throttle lever for a specified engine.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the engine. |
throttleLeverPos | number | The 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.