Class: APVSDirector
A vertical speed autopilot director.
Implements
Constructors
constructor
• new APVSDirector(apValues
, vsIncrement?
): APVSDirector
Creates an instance of the LateralDirector.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
apValues | APValues | undefined | are the ap selected values for the autopilot. |
vsIncrement | undefined | number | undefined | The number that vertical speed can be incremented by, in feet per minute. Upon activation, the actual vs will be rounded using this increment. If undefined, the value will not be rounded before passed to the sim. Defaults to undefined. |
Returns
Defined in
src/sdk/autopilot/directors/APVSDirector.ts:33
Properties
apValues
• Protected
Readonly
apValues: APValues
are the ap selected values for the autopilot.
Defined in
src/sdk/autopilot/directors/APVSDirector.ts:33
drivePitch
• Optional
drivePitch: (pitch
: number
, adjustForAoa?
: boolean
, adjustForVerticalWind?
: boolean
) => void
A function used to drive the autopilot commanded pitch angle toward a desired value while optionally correcting for angle of attack and vertical wind.
Param
The desired pitch angle, in degrees. Positive values indicate downward pitch.
Param
Whether to adjust the commanded pitch angle for angle of attack. If true
, the provided pitch
angle is treated as a desired flight path angle and a new commanded pitch angle will be calculated to produce the
desired FPA given the airplane's current angle of attack. This correction can be used in conjunction with the
vertical wind correction. Defaults to false
.
Param
Whether to adjust the commanded pitch angle for vertical wind velocity. If true
,
the provided pitch angle is treated as a desired flight path angle and a new commanded pitch angle will be
calculated to produce the desired FPA given the current vertical wind component. This correction can be used in
conjunction with the angle of attack correction. Defaults to false
.
Param
The rate at which to drive the commanded pitch angle, in degrees per second. If not defined, a default rate will be used.
Type declaration
▸ (pitch
, adjustForAoa?
, adjustForVerticalWind?
): void
Parameters
Name | Type |
---|---|
pitch | number |
adjustForAoa? | boolean |
adjustForVerticalWind? | boolean |
Returns
void
Inherit Doc
Implementation of
Defined in
src/sdk/autopilot/directors/APVSDirector.ts:23
onActivate
• Optional
onActivate: () => void
A callback called when a mode signals it should be activated.
Type declaration
▸ (): void
Returns
void
Inherit Doc
Implementation of
Defined in
src/sdk/autopilot/directors/APVSDirector.ts:17
onArm
• Optional
onArm: () => void
A callback called when a mode signals it should be armed.
Type declaration
▸ (): void
Returns
void
Inherit Doc
Implementation of
Defined in
src/sdk/autopilot/directors/APVSDirector.ts:20
state
• state: DirectorState
The current director state.
Implementation of
Defined in
src/sdk/autopilot/directors/APVSDirector.ts:14
vsIncrement
• Protected
Readonly
vsIncrement: undefined
| number
= undefined
The number that vertical speed can be incremented by, in feet per minute. Upon activation, the actual vs will be rounded using this increment. If undefined, the value will not be rounded before passed to the sim. Defaults to undefined.
Defined in
src/sdk/autopilot/directors/APVSDirector.ts:33
Methods
activate
▸ activate(): void
Activates this director.
Returns
void
Implementation of
Defined in
src/sdk/autopilot/directors/APVSDirector.ts:40
arm
▸ arm(): void
Arms this director. This director has no armed mode, so it activates immediately.
Returns
void
Implementation of
Defined in
src/sdk/autopilot/directors/APVSDirector.ts:56
deactivate
▸ deactivate(): void
Deactivates this director.
Returns
void
Implementation of
Defined in
src/sdk/autopilot/directors/APVSDirector.ts:65
getDesiredPitch
▸ getDesiredPitch(): number
Gets a desired pitch from the selected vs value.
Returns
number
The desired pitch angle.
Defined in
src/sdk/autopilot/directors/APVSDirector.ts:83
update
▸ update(): void
Updates this director.
Returns
void
Implementation of
Defined in
src/sdk/autopilot/directors/APVSDirector.ts:73