Skip to main content

Class: Epic2JetFadec

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Autothrottle/Epic2JetFadec.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 Epic2JetFadec(bus, config?): Epic2JetFadec

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

Ctor.

Parameters

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

Returns

Epic2JetFadec

Overrides

JetFadec.constructor

Properties

bus

protected readonly bus: EventBus

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

The event bus.

Inherited from

JetFadec.bus


climbThrottlePosition

climbThrottlePosition: number = 1

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

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

Implementation of

Epic2Fadec.climbThrottlePosition


desiredThrottleMax

protected readonly desiredThrottleMax: number = 100

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

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

Inherited from

JetFadec.desiredThrottleMax


desiredThrottleMin

protected readonly desiredThrottleMin: number = -100

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

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

Inherited from

JetFadec.desiredThrottleMin


engineStates

protected readonly engineStates: Record<number, JetFadecEngineState>

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

Inherited from

JetFadec.engineStates


idleThrottlePosition

idleThrottlePosition: number = 0

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

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

Implementation of

Epic2Fadec.idleThrottlePosition


lastModes

protected readonly lastModes: (null | JetFadecMode)[]

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

Inherited from

JetFadec.lastModes


modes

protected readonly modes: readonly JetFadecMode[]

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

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

Inherited from

JetFadec.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/Epic2JetFadec.ts:42

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/JetFadec.ts:108

Inherited from

JetFadec.publisher


takeoffThrottlePosition

takeoffThrottlePosition: number = 1

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

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

Implementation of

Epic2Fadec.takeoffThrottlePosition


throttleInfos

protected readonly throttleInfos: readonly JetFadecThrottleInfoInternal[]

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

Inherited from

JetFadec.throttleInfos


throttleLeverManager

readonly throttleLeverManager: ThrottleLeverManager

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

The throttle lever manager.

Implementation of

Epic2Fadec.throttleLeverManager


throttleLeverPositionValues

protected readonly throttleLeverPositionValues: readonly ConsumerValue<number>[]

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

Inherited from

JetFadec.throttleLeverPositionValues


MSFS_STANDARD_SEA_LEVEL_TEMP_RANKINE

protected readonly static MSFS_STANDARD_SEA_LEVEL_TEMP_RANKINE: 518.69 = 518.69

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

Inherited from

JetFadec.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/Epic2JetFadec.ts:108

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/Epic2JetFadec.ts:116

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/Epic2JetFadec.ts:95

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/JetFadec.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

JetFadec.onUpdate


setMode()

protected setMode(index, mode): void

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

Sets a FADEC mode for a throttle.

Parameters

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

Returns

void

Inherited from

JetFadec.setMode


start()

start(frequency): void

Defined in: sdk/fadec/JetFadec.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

JetFadec.start


stop()

stop(): void

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

Turns this FADEC off.

Returns

void

Inherited from

JetFadec.stop


updateEngineStates()

protected updateEngineStates(): void

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

Updates the states for this FADEC's engines.

Returns

void

Inherited from

JetFadec.updateEngineStates


updateThrottle()

protected updateThrottle(index, dt): void

Defined in: sdk/fadec/JetFadec.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

JetFadec.updateThrottle


updateThrottles()

protected updateThrottles(dt): void

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

Updates this FADEC's engine throttles.

Parameters

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

Returns

void

Inherited from

JetFadec.updateThrottles