Class: APTrkHoldDirector
Defined in: src/sdk/autopilot/directors/APTrkHoldDirector.ts:31
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
Defined in: src/sdk/autopilot/directors/APTrkHoldDirector.ts:62
Creates an instance of the track hold director.
Parameters
| Parameter | 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
APTrkHoldDirector
Properties
driveBank()?
optionaldriveBank: (bank,rate?) =>void
Defined in: src/sdk/autopilot/directors/APTrkHoldDirector.ts:44
A function used to drive the autopilot commanded bank angle toward a desired value.
Parameters
| Parameter | Type |
|---|---|
bank | number |
rate? | number |
Returns
void
Implementation of
onActivate()?
optionalonActivate: () =>void
Defined in: src/sdk/autopilot/directors/APTrkHoldDirector.ts:38
A callback called when a mode signals it should be activated.
Returns
void
Implementation of
onArm()?
optionalonArm: () =>void
Defined in: src/sdk/autopilot/directors/APTrkHoldDirector.ts:41
A callback called when a mode signals it should be armed.
Returns
void
Implementation of
state
state:
DirectorState
Defined in: src/sdk/autopilot/directors/APTrkHoldDirector.ts:35
The current director state.
Implementation of
Methods
activate()
activate():
void
Defined in: src/sdk/autopilot/directors/APTrkHoldDirector.ts:123
Activates this director.
Returns
void
Implementation of
arm()
arm():
void
Defined in: src/sdk/autopilot/directors/APTrkHoldDirector.ts:138
Arms this director. This director has no armed mode, so it activates immediately.
Returns
void
Implementation of
deactivate()
deactivate():
void
Defined in: src/sdk/autopilot/directors/APTrkHoldDirector.ts:147
Deactivates this director.
Returns
void
Implementation of
update()
update():
void
Defined in: src/sdk/autopilot/directors/APTrkHoldDirector.ts:157
Updates this director.
Returns
void