Skip to main content

Class: Epic2TurbopropFadec

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Autothrottle/Epic2TurbopropFadec.ts:9

A default FADEC for a turboprop engined plane. Useful during early development but planes should implement a FADEC plugin.

Extends​

Implements​

Constructors​

Constructor​

new Epic2TurbopropFadec(bus, config?): Epic2TurbopropFadec

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Autothrottle/Epic2TurbopropFadec.ts:48

Ctor.

Parameters​

ParameterTypeDescription
busEventBusThe event bus.
config?Partial<Epic2FadecConfig>The configuration for the FADEC.

Returns​

Epic2TurbopropFadec

Overrides​

TurbopropFadec.constructor

Properties​

bus​

protected readonly bus: EventBus

Defined in: sdk/fadec/TurbopropFadec.ts:135

The event bus.

Inherited from​

TurbopropFadec.bus


climbThrottlePosition​

climbThrottlePosition: number = 1

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Autothrottle/Epic2TurbopropFadec.ts:32

The climb throttle detent position in the range [0, 1].

Implementation of​

Epic2Fadec.climbThrottlePosition


desiredThrottleMax​

protected readonly desiredThrottleMax: number = 100

Defined in: sdk/fadec/TurbopropFadec.ts:139

The max value to limit the desiredThrottle by. Defaults to 100.

Inherited from​

TurbopropFadec.desiredThrottleMax


desiredThrottleMin​

protected readonly desiredThrottleMin: number = -100

Defined in: sdk/fadec/TurbopropFadec.ts:138

The min value to limit the desiredThrottle by. Defaults to -100.

Inherited from​

TurbopropFadec.desiredThrottleMin


engineStates​

protected readonly engineStates: Record<number, TurbopropFadecEngineState>

Defined in: sdk/fadec/TurbopropFadec.ts:119

Inherited from​

TurbopropFadec.engineStates


idleThrottlePosition​

idleThrottlePosition: number = 0

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Autothrottle/Epic2TurbopropFadec.ts:34

The idle throttle detent position in the range [0, 1].

Implementation of​

Epic2Fadec.idleThrottlePosition


lastModes​

protected readonly lastModes: (TurbopropFadecMode | null)[]

Defined in: sdk/fadec/TurbopropFadec.ts:121

Inherited from​

TurbopropFadec.lastModes


modes​

protected readonly modes: readonly TurbopropFadecMode[]

Defined in: sdk/fadec/TurbopropFadec.ts:136

The modes supported by this FADEC, ordered from highest to lowest priority.

Inherited from​

TurbopropFadec.modes


onThrottleLeverKeyEvent()?​

optional onThrottleLeverKeyEvent: (index, currentPos, newPos, keyEvent) => number

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Autothrottle/Epic2TurbopropFadec.ts:41

A function which handles throttle lever input key events. The function takes in the index of the throttle, the current and requested throttle lever positions (both in the range -1 to +1), and the name of the key event, and should return the desired actual position to set (also in the range -1 to +1).

Parameters​

ParameterType
indexAutothrottleThrottleIndex
currentPosnumber
newPosnumber
keyEventstring

Returns​

number

Implementation of​

Epic2Fadec.onThrottleLeverKeyEvent


publisher​

protected readonly publisher: Publisher<FadecEvents>

Defined in: sdk/fadec/TurbopropFadec.ts:108

Inherited from​

TurbopropFadec.publisher


takeoffThrottlePosition​

takeoffThrottlePosition: number = 1

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Autothrottle/Epic2TurbopropFadec.ts:33

The takeoff throttle detent position in the range [0, 1].

Implementation of​

Epic2Fadec.takeoffThrottlePosition


throttleInfos​

protected readonly throttleInfos: readonly TurbopropFadecThrottleInfoInternal[]

Defined in: sdk/fadec/TurbopropFadec.ts:110

Inherited from​

TurbopropFadec.throttleInfos


throttleLeverManager​

readonly throttleLeverManager: ThrottleLeverManager

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Autothrottle/Epic2TurbopropFadec.ts:18

The throttle lever manager.

Implementation of​

Epic2Fadec.throttleLeverManager


throttleLeverPositionValues​

protected readonly throttleLeverPositionValues: readonly ConsumerValue<number>[]

Defined in: sdk/fadec/TurbopropFadec.ts:112

Inherited from​

TurbopropFadec.throttleLeverPositionValues


MSFS_STANDARD_SEA_LEVEL_TEMP_RANKINE​

protected readonly static MSFS_STANDARD_SEA_LEVEL_TEMP_RANKINE: 518.69 = 518.69

Defined in: sdk/fadec/TurbopropFadec.ts:106

Inherited from​

TurbopropFadec.MSFS_STANDARD_SEA_LEVEL_TEMP_RANKINE

Accessors​

engineType​

Get Signature​

get engineType(): Epic2EngineType

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Autothrottle/Epic2TurbopropFadec.ts:107

The type of engine on this plane.

Returns​

Epic2EngineType

The type of engine on this plane.

Implementation of​

Epic2Fadec.engineType


numberOfEngines​

Get Signature​

get numberOfEngines(): AutothrottleThrottleIndex

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Autothrottle/Epic2TurbopropFadec.ts:115

The number of engines configured for this plane.

Returns​

AutothrottleThrottleIndex

the number of engines configured for this plane.

The number of engines configured for this plane.

Implementation of​

Epic2Fadec.numberOfEngines

Methods​

onThrottleLeverPosRequested()​

protected onThrottleLeverPosRequested(index, currentPos, newPos, keyEvent?): number

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Autothrottle/Epic2TurbopropFadec.ts:94

Responds to when a throttle lever position is requested.

Parameters​

ParameterTypeDescription
indexnumberThe index of the throttle lever.
currentPosnumberThe current position of the throttle lever, from -1 to +1.
newPosnumberThe requested new position, from -1 to +1.
keyEvent?stringThe key event that triggered the request.

Returns​

number

The actual throttle lever position to set.


onUpdate()​

protected onUpdate(dt): void

Defined in: sdk/fadec/TurbopropFadec.ts:225

A method called when this FADEC is updated.

Parameters​

ParameterTypeDescription
dtnumberThe elapsed real time, in milliseconds, since the last update.

Returns​

void

Inherited from​

TurbopropFadec.onUpdate


setMode()​

protected setMode(index, mode): void

Defined in: sdk/fadec/TurbopropFadec.ts:297

Sets a FADEC mode for a throttle.

Parameters​

ParameterTypeDescription
indexnumberThe index of the throttle in this FADEC's throttle list.
modeTurbopropFadecMode | nullThe mode to set.

Returns​

void

Inherited from​

TurbopropFadec.setMode


start()​

start(frequency): void

Defined in: 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​

ParameterTypeDescription
frequencynumberThe frequency, in hertz, at which this FADEC will update.

Returns​

void

Inherited from​

TurbopropFadec.start


stop()​

stop(): void

Defined in: sdk/fadec/TurbopropFadec.ts:187

Turns this FADEC off.

Returns​

void

Inherited from​

TurbopropFadec.stop


updateEngineStates()​

protected updateEngineStates(): void

Defined in: sdk/fadec/TurbopropFadec.ts:233

Updates the states for this FADEC's engines.

Returns​

void

Inherited from​

TurbopropFadec.updateEngineStates


updateThrottle()​

protected updateThrottle(index, dt): void

Defined in: sdk/fadec/TurbopropFadec.ts:261

Updates a throttle.

Parameters​

ParameterTypeDescription
indexnumberThe index of the throttle in this FADEC's throttle list.
dtnumberThe elapsed time, in milliseconds, since the last update.

Returns​

void

Inherited from​

TurbopropFadec.updateThrottle


updateThrottles()​

protected updateThrottles(dt): void

Defined in: sdk/fadec/TurbopropFadec.ts:250

Updates this FADEC's engine throttles.

Parameters​

ParameterTypeDescription
dtnumberThe elapsed real time, in milliseconds, since the last update.

Returns​

void

Inherited from​

TurbopropFadec.updateThrottles