Class: APTrkHoldDirector
An autopilot track hold director. Levels the wings upon activation, and then holds the captured track
Implements
Constructors
constructor
• new APTrkHoldDirector(bus
, apValues
, options?
): APTrkHoldDirector
Creates an instance of the track hold director.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus to use with this instance. |
apValues | APValues | Autopilot values from this director's parent autopilot. |
options? | Readonly <APTrkHoldDirectorOptions > | Options to configure the new director. Option values default to the following if not defined: maxBankAngle : undefined isToGaMode : false |
Returns
Defined in
src/sdk/autopilot/directors/APTrkHoldDirector.ts:62
Properties
driveBank
• Optional
driveBank: (bank
: number
, rate?
: number
) => void
A function used to drive the autopilot commanded bank angle toward a desired value.
Param
The desired bank angle, in degrees. Positive values indicate left bank.
Param
The rate at which to drive the commanded bank angle, in degrees per second. If not defined, a default rate will be used.
Type declaration
▸ (bank
, rate?
): void
Parameters
Name | Type |
---|---|
bank | number |
rate? | number |
Returns
void
Inherit Doc
Implementation of
Defined in
src/sdk/autopilot/directors/APTrkHoldDirector.ts:44
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/APTrkHoldDirector.ts:38
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/APTrkHoldDirector.ts:41
state
• state: DirectorState
The current director state.
Implementation of
Defined in
src/sdk/autopilot/directors/APTrkHoldDirector.ts:35
Methods
activate
▸ activate(): void
Activates this director.
Returns
void
Implementation of
Defined in
src/sdk/autopilot/directors/APTrkHoldDirector.ts:123
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/APTrkHoldDirector.ts:138
deactivate
▸ deactivate(): void
Deactivates this director.
Returns
void
Implementation of
Defined in
src/sdk/autopilot/directors/APTrkHoldDirector.ts:147
update
▸ update(): void
Updates this director.
Returns
void
Implementation of
Defined in
src/sdk/autopilot/directors/APTrkHoldDirector.ts:157