Class: G3000Esp
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:12
A G3000 electronic stability and protection (ESP) system.
Implements
Constructors
Constructor
new G3000Esp(
bus
,dataProvider
,def
):G3000Esp
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:42
Creates a new instance of G3000Esp. The system is created in a paused state. Initializing the system and calling
update()
will resume it.
Parameters
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
dataProvider | EspDataProvider | A provider of ESP data. |
def | G3000EspDefinition | A definition that describes how to create the system. |
Returns
G3000Esp
Properties
engagementTimeFraction
readonly
engagementTimeFraction:Subscribable
<number
>
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:33
The amount of time this system spent engaged during the engagement time window, as a fraction of the window length. If engagement time is not tracked, then this value is always equal to zero.
Implementation of
G3000EspInterface
.engagementTimeFraction
engagementTimeWindow
readonly
engagementTimeWindow:number
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:30
The length of the window, in seconds, in which engagement time is tracked, or 0
if engagement time is not
tracked.
Implementation of
G3000EspInterface
.engagementTimeWindow
operatingMode
readonly
operatingMode:Subscribable
<EspOperatingMode
>
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:21
This system's current operating mode.
Implementation of
G3000EspInterface
.operatingMode
pitchAxisForce
readonly
pitchAxisForce:Subscribable
<number
>
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:24
The force applied to the pitch control axis by this system, scaled such that a force of magnitude one is the amount of force required to deflect the control axis from the neutral position to maximum deflection (on either side). Positive force deflects the control axis to command an increase in pitch angle (i.e. increase downward pitch).
Implementation of
G3000EspInterface
.pitchAxisForce
rollAxisForce
readonly
rollAxisForce:Subscribable
<number
>
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:27
The force applied to the roll control axis by this system, scaled such that a force of magnitude one is the amount of force required to deflect the control axis from the neutral position to maximum deflection (on either side). Positive force deflects the control axis to command an increase in roll angle (i.e. increase leftward roll).
Implementation of
G3000EspInterface
.rollAxisForce
Methods
getAllModules()
getAllModules(): readonly
EspModule
[]
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:93
Gets an array containing all modules that have been added to this system.
Returns
readonly EspModule
[]
An array containing all modules that have been added to this system.
Implementation of
G3000EspInterface
.getAllModules
getModule()
getModule(
id
):undefined
|EspModule
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:98
Gets a module with a given ID that has been added to this system.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | The ID of the module to get. |
Returns
undefined
| EspModule
The module added to this system that has the specified ID, or undefined
if there is no such module.
Implementation of
init()
init():
void
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:105
Initializes this system. Once the system is initialized, it can be updated by calling update()
.
Returns
void
pause()
pause():
void
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:139
Pauses this system. The system will be resumed the next time update()
is called.
Returns
void
setAvionicsPowered()
setAvionicsPowered(
powered
):void
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:114
Sets whether avionics are powered.
Parameters
Parameter | Type | Description |
---|---|---|
powered | boolean | Whether avionics are powered. |
Returns
void
setFailed()
setFailed(
failed
):void
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:125
Sets whether this system has failed.
Parameters
Parameter | Type | Description |
---|---|---|
failed | boolean | Whether this system has failed. |
Returns
void
Implementation of
setInterrupt()
setInterrupt(
interrupt
):void
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:120
Sets whether pilot action is preventing this system from being engaged.
Parameters
Parameter | Type | Description |
---|---|---|
interrupt | boolean | Whether pilot action is preventing this system from being engaged. |
Returns
void
Implementation of
G3000EspInterface
.setInterrupt
update()
update():
void
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000Esp.ts:132
Updates this system.
Returns
void