Class: TurbopropFadec
Defined in: src/sdk/fadec/TurbopropFadec.ts:104
A FADEC for turboprops. Controls engine throttle based on throttle lever position and other inputs.
Constructors
Constructor
new TurbopropFadec(
bus
,modes
,throttleInfos
,desiredThrottleMin
,desiredThrottleMax
):TurbopropFadec
Defined in: src/sdk/fadec/TurbopropFadec.ts:134
Constructor.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
bus | EventBus | undefined | The event bus. |
modes | readonly TurbopropFadecMode [] | undefined | The modes supported by this FADEC, ordered from highest to lowest priority. |
throttleInfos | readonly TurbopropFadecThrottleInfo [] | undefined | An array containing information pertaining to the throttles controlled by this FADEC. The order of modes in the array determines their priority during mode selection. On every update cycle, the FADEC iterates through the modes array in order, calling accept() on each mode until a value of true is returned. Therefore, modes positioned earlier in the array have a higher priority for selection. |
desiredThrottleMin | number | -100 | The min value to limit the desiredThrottle by. Defaults to -100. |
desiredThrottleMax | number | 100 | The max value to limit the desiredThrottle by. Defaults to 100. |
Returns
TurbopropFadec
Properties
bus
protected
readonly
bus:EventBus
Defined in: src/sdk/fadec/TurbopropFadec.ts:135
The event bus.
desiredThrottleMax
protected
readonly
desiredThrottleMax:number
=100
Defined in: src/sdk/fadec/TurbopropFadec.ts:139
The max value to limit the desiredThrottle by. Defaults to 100.
desiredThrottleMin
protected
readonly
desiredThrottleMin:number
=-100
Defined in: src/sdk/fadec/TurbopropFadec.ts:138
The min value to limit the desiredThrottle by. Defaults to -100.
engineStates
protected
readonly
engineStates:Record
<number
,TurbopropFadecEngineState
>
Defined in: src/sdk/fadec/TurbopropFadec.ts:119
lastModes
protected
readonly
lastModes: (null
|TurbopropFadecMode
)[]
Defined in: src/sdk/fadec/TurbopropFadec.ts:121
modes
protected
readonly
modes: readonlyTurbopropFadecMode
[]
Defined in: src/sdk/fadec/TurbopropFadec.ts:136
The modes supported by this FADEC, ordered from highest to lowest priority.
publisher
protected
readonly
publisher:Publisher
<FadecEvents
>
Defined in: src/sdk/fadec/TurbopropFadec.ts:108
throttleInfos
protected
readonly
throttleInfos: readonlyTurbopropFadecThrottleInfoInternal
[]
Defined in: src/sdk/fadec/TurbopropFadec.ts:110
throttleLeverPositionValues
protected
readonly
throttleLeverPositionValues: readonlyConsumerValue
<number
>[]
Defined in: src/sdk/fadec/TurbopropFadec.ts:112
MSFS_STANDARD_SEA_LEVEL_TEMP_RANKINE
protected
readonly
static
MSFS_STANDARD_SEA_LEVEL_TEMP_RANKINE:518.69
=518.69
Defined in: src/sdk/fadec/TurbopropFadec.ts:106
Methods
onUpdate()
protected
onUpdate(dt
):void
Defined in: src/sdk/fadec/TurbopropFadec.ts:225
A method called when this FADEC is updated.
Parameters
Parameter | Type | Description |
---|---|---|
dt | number | The elapsed real time, in milliseconds, since the last update. |
Returns
void
setMode()
protected
setMode(index
,mode
):void
Defined in: src/sdk/fadec/TurbopropFadec.ts:297
Sets a FADEC mode for a throttle.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the throttle in this FADEC's throttle list. |
mode | null | TurbopropFadecMode | The mode to set. |
Returns
void
start()
start(
frequency
):void
Defined in: src/sdk/fadec/TurbopropFadec.ts:176
Turns this FADEC on. If this FADEC is already running, then it will be turned off before turning on again with the specified frequency.
Parameters
Parameter | Type | Description |
---|---|---|
frequency | number | The frequency, in hertz, at which this FADEC will update. |
Returns
void
stop()
stop():
void
Defined in: src/sdk/fadec/TurbopropFadec.ts:187
Turns this FADEC off.
Returns
void
updateEngineStates()
protected
updateEngineStates():void
Defined in: src/sdk/fadec/TurbopropFadec.ts:233
Updates the states for this FADEC's engines.
Returns
void
updateThrottle()
protected
updateThrottle(index
,dt
):void
Defined in: src/sdk/fadec/TurbopropFadec.ts:261
Updates a throttle.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the throttle in this FADEC's throttle list. |
dt | number | The elapsed time, in milliseconds, since the last update. |
Returns
void
updateThrottles()
protected
updateThrottles(dt
):void
Defined in: src/sdk/fadec/TurbopropFadec.ts:250
Updates this FADEC's engine throttles.
Parameters
Parameter | Type | Description |
---|---|---|
dt | number | The elapsed real time, in milliseconds, since the last update. |
Returns
void