Skip to main content

Interface: AutopilotDriverOutput

Defined in: src/sdk/autopilot/AutopilotDriver.ts:15

An output to which an AutopilotDriver sends pitch and bank reference commands.

Methods​

driveBank()​

driveBank(bank, rate): void

Defined in: src/sdk/autopilot/AutopilotDriver.ts:27

Drives the commanded bank angle toward a desired value.

Parameters​

ParameterTypeDescription
banknumberThe desired bank angle, in degrees. Positive values indicate left bank.
ratenumberThe rate at which to drive the commanded bank angle, in degrees per second.

Returns​

void


drivePitch()​

drivePitch(pitch, rate): void

Defined in: src/sdk/autopilot/AutopilotDriver.ts:40

Drives the commanded pitch angle toward a desired value.

Parameters​

ParameterTypeDescription
pitchnumberThe desired pitch angle, in degrees. Positive values indicate downward pitch.
ratenumberThe rate at which to drive the commanded pitch angle, in degrees per second.

Returns​

void


onUpdate()​

onUpdate(): void

Defined in: src/sdk/autopilot/AutopilotDriver.ts:45

A method that is called every time this output's parent autopilot is updated.

Returns​

void


setBank()​

setBank(bank): void

Defined in: src/sdk/autopilot/AutopilotDriver.ts:20

Sets the commanded bank angle, in degrees.

Parameters​

ParameterTypeDescription
banknumberThe commanded bank angle to set, in degrees. Positive values indicate left bank.

Returns​

void


setPitch()​

setPitch(pitch): void

Defined in: src/sdk/autopilot/AutopilotDriver.ts:33

Sets the commanded pitch angle, in degrees.

Parameters​

ParameterTypeDescription
pitchnumberThe commanded pitch angle to set, in degrees. Positive values indicate downward pitch.

Returns​

void