Interface: ObsDirector
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:107
A director that handles OBS Lateral Navigation.
Deprecated
Extends
Properties
driveBank()?
optional
driveBank: (bank
,rate?
) =>void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:72
A function used to drive the autopilot commanded bank angle toward a desired value.
Parameters
Parameter | Type | Description |
---|---|---|
bank | number | The desired bank angle, in degrees. Positive values indicate left bank. |
rate? | number | The rate at which to drive the commanded bank angle, in degrees per second. If not defined, a default rate will be used. |
Returns
void
Inherited from
drivePitch()?
optional
drivePitch: (pitch
,adjustForAoa?
,adjustForVerticalWind?
,rate?
,maxNoseDownPitch?
,maxNoseUpPitch?
) =>void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:97
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 | Description |
---|---|---|
pitch | number | The desired pitch angle, in degrees. Positive values indicate downward pitch. |
adjustForAoa? | boolean | 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 . |
adjustForVerticalWind? | boolean | 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 . |
rate? | number | The rate at which to drive the commanded pitch angle, in degrees per second. If not defined, a default rate will be used. |
maxNoseDownPitch? | number | The maximum nose down pitch angle, defaults to the global AP pitch limit. |
maxNoseUpPitch? | number | The maximum nose up pitch angle, defaults to the global AP pitch limit. |
Returns
void
Inherited from
obsActive
readonly
obsActive:boolean
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:109
Whether or not OBS mode is active.
onActivate()?
optional
onActivate: () =>void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:46
A callback called when a mode signals it should be activated.
Returns
void
Inherited from
onArm()?
optional
onArm: () =>void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:52
A callback called when a mode signals it should be armed.
Returns
void
Inherited from
onDeactivate()?
optional
onDeactivate: () =>void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:58
A callback called when a mode signals it should be deactivated.
Returns
void
Inherited from
setBank()?
optional
setBank: (bank
) =>void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:64
A callback called to set an exact AP bank target.
Parameters
Parameter | Type | Description |
---|---|---|
bank | number | The bank in degrees (positive = right, negative = left). |
Returns
void
Inherited from
setPitch()?
optional
setPitch: (pitch
) =>void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:78
A callback called to set an exact AP pitch target.
Parameters
Parameter | Type | Description |
---|---|---|
pitch | number | The pitch in degrees (positive = down, negative = up). |
Returns
void
Inherited from
state
state:
DirectorState
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:100
The current director state.
Inherited from
Methods
activate()
activate():
void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:25
Activates the guidance mode.
Returns
void
Inherited from
arm()
arm():
void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:30
Arms the guidance mode.
Returns
void
Inherited from
canActivate()
canActivate():
boolean
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:119
Whether or not OBS mode can be activated currently.
Returns
boolean
deactivate()
deactivate():
void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:35
Deactivates the guidance mode.
Returns
void
Inherited from
setLeg()
setLeg(
index
,leg
):void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:116
Sets the flight plan leg whose terminator defines this director's OBS fix.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The global leg index of the leg. |
leg | null | LegDefinition | The leg to track. |
Returns
void
startTracking()
startTracking():
void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:122
Starts tracking the OBS course.
Returns
void
stopTracking()
stopTracking():
void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:125
Stops tracking the OBS course.
Returns
void
update()
update():
void
Defined in: src/sdk/autopilot/directors/PlaneDirector.ts:40
Updates the guidance mode control loops.
Returns
void