Skip to main content

Interface: TcasOwnAirplane

Defined in: src/sdk/traffic/Tcas.ts:1262

An own airplane used by Tcas.

Properties​

actualGroundSpeed​

readonly actualGroundSpeed: NumberUnitReadOnly<Speed>

Defined in: src/sdk/traffic/Tcas.ts:1291

The actual (omniscient) ground speed of this airplane at the time of the most recent update.


actualGroundTrack​

readonly actualGroundTrack: number

Defined in: src/sdk/traffic/Tcas.ts:1285

The actual (omniscient) true ground track of this airplane at the time of the most recent update.


actualPosition​

readonly actualPosition: GeoPointReadOnly

Defined in: src/sdk/traffic/Tcas.ts:1270

The actual (omniscient) position of this airplane at the time of the most recent update.


actualVelocityVec​

readonly actualVelocityVec: ReadonlyFloat64Array

Defined in: src/sdk/traffic/Tcas.ts:1326

The actual (omniscient) 3D velocity vector of this airplane at the time of the last update, as [x, y, z]. Each component is expressed in units of meters per second. The coordinate system is the same as the one used for velocityVec. Only the x and y components contain omnisicent values. The z (vertical) component has the same value as the z component of velocityVec.


altitude​

readonly altitude: NumberUnitReadOnly<Distance>

Defined in: src/sdk/traffic/Tcas.ts:1276

The geometric altitude above MSL of this airplane at the time of the most recent update, or NaN if the geometric altitude is not known.


canUseActiveSurveillance​

readonly canUseActiveSurveillance: boolean

Defined in: src/sdk/traffic/Tcas.ts:1329

Whether the own airplane can use active surveillance to track TCAS intruders at the time of the last update.


groundSpeed​

readonly groundSpeed: NumberUnitReadOnly<Speed>

Defined in: src/sdk/traffic/Tcas.ts:1288

The ground speed of this airplane at the time of the most recent update, or NaN if the track is not known.


groundTrack​

readonly groundTrack: number

Defined in: src/sdk/traffic/Tcas.ts:1282

The true ground track of this airplane, in degrees, at the time of the most recent update, or NaN if the track is not known.


isOnGround​

readonly isOnGround: boolean

Defined in: src/sdk/traffic/Tcas.ts:1306

Whether this airplane is on the ground at the time of the most recent update.


position​

readonly position: GeoPointReadOnly

Defined in: src/sdk/traffic/Tcas.ts:1267

The position of this airplane at the time of the most recent update. If the position is not known, then both latitude and longitude will be NaN.


positionVec​

readonly positionVec: ReadonlyFloat64Array

Defined in: src/sdk/traffic/Tcas.ts:1309

The 3D position vector of this airplane at the time of the last update. Always equal to [0, 0, 0].


radarAltitude​

readonly radarAltitude: NumberUnitReadOnly<Distance>

Defined in: src/sdk/traffic/Tcas.ts:1303

The radar altitude of this airplane at the time of the most recent update, or NaN if the radar altitude is not known.


velocityVec​

readonly velocityVec: ReadonlyFloat64Array

Defined in: src/sdk/traffic/Tcas.ts:1318

The 3D velocity vector of this airplane at the time of the last update, as [x, y, z]. Each component is expressed in units of meters per second. The coordinate system is an Euclidean approximation of the geodetic space around the airplane such that the positive x axis points horizontally toward true east, the positive y axis points horizontally toward true north, and the positive z axis points vertically upward. If one of the velocity components is not known, then it will be NaN.


verticalSpeed​

readonly verticalSpeed: NumberUnitReadOnly<Speed>

Defined in: src/sdk/traffic/Tcas.ts:1297

The barometric vertical speed of this airplane at the time of the most recent update, or NaN if the vertical speed is not known.

Methods​

predictPosition()​

predictPosition(simTime, out): Float64Array

Defined in: src/sdk/traffic/Tcas.ts:1341

Calculates the predicted 3D position vector of this airplane at a specified time based on the most recent available position and velocity data. Each component of the vector is expressed in units of meters. The coordinate system is an Euclidean approximation of the geodetic space around the airplane such that the positive x axis points horizontally toward true east, the positive y axis points horizontally toward true north, and the positive z axis points vertically upward. The origin is at the most recent known position of this airplane.

Parameters​

ParameterTypeDescription
simTimenumberThe sim time at which to calculate the position, as a Javascript timestamp.
outFloat64ArrayThe vector to which to write the result.

Returns​

Float64Array

The predicted position vector of this airplane at the specified time.


update()​

update(simTime): void

Defined in: src/sdk/traffic/Tcas.ts:1347

Updates this airplane's data.

Parameters​

ParameterTypeDescription
simTimenumberThe current sim time, as a Javascript timestamp.

Returns​

void