Class: APTogaPitchDirector
Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:36
An autopilot director that generates flight director pitch commands to hold a pitch attitude and sets the
L:WT_TOGA_ACTIVE SimVar state to true (1) when it is armed or activated, and to false (0) when it is
deactivated.
If the director is created with access to an APValues object, then the director requires valid pitch data to arm or activate.
Extended by
Implements
Constructors
Constructor
new APTogaPitchDirector(
apValues,options?):APTogaPitchDirector
Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:67
Creates a new instance of APTogaPitchDirector.
Parameters
| Parameter | Type | Description |
|---|---|---|
apValues | APValues | Autopilot values from this director's parent autopilot. |
options? | Readonly<APTogaPitchDirectorOptions> | Options with which to configure this director. |
Returns
APTogaPitchDirector
Constructor
new APTogaPitchDirector(
targetPitchAngle?):APTogaPitchDirector
Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:75
Creates a new instance of APTogaPitchDirector.
Parameters
| Parameter | Type | Description |
|---|---|---|
targetPitchAngle? | number | The target pitch angle set by this director when activated, in degrees. Positive values indicate upward pitch. Defaults to 10. |
Returns
APTogaPitchDirector
Deprecated
Please use the constructor overload that takes an APValues object and options object as arguments
instead.
Properties
drivePitch()?
optionaldrivePitch: (pitch,adjustForAoa?,adjustForVerticalWind?,rate?) =>void
Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:50
A function used to drive the autopilot commanded pitch angle toward a desired value while optionally correcting for angle of attack and vertical wind.
Parameters
| Parameter | Type |
|---|---|
pitch | number |
adjustForAoa? | boolean |
adjustForVerticalWind? | boolean |
rate? | number |
Returns
void
Implementation of
onActivate()?
optionalonActivate: () =>void
Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:41
A callback called when this director is activated.
Returns
void
Implementation of
onArm()?
optionalonArm: () =>void
Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:44
A callback called when this director is armed.
Returns
void
Implementation of
onDeactivate()?
optionalonDeactivate: () =>void
Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:47
A callback that is called when this director is deactivated.
Returns
void
Implementation of
setPitch()?
optionalsetPitch: (pitch) =>void
Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:53
A callback called to set an exact AP pitch target.
Parameters
| Parameter | Type |
|---|---|
pitch | number |
Returns
void
Implementation of
state
state:
DirectorState
Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:38
The current director state.
Implementation of
Methods
activate()
activate():
void
Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:137
Activates this director.
Returns
void
Implementation of
arm()
arm():
void
Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:158
Arms this director.
Returns
void
Implementation of
deactivate()
deactivate():
void
Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:165
Deactivates this director.
Returns
void
Implementation of
update()
update():
void
Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:182
Updates this director.
Returns
void