Interface: TrafficContact
Defined in: src/sdk/instruments/Traffic.ts:26
A traffic contact.
Properties
groundSpeed
readonly
groundSpeed:NumberUnitReadOnly
<Speed
>
Defined in: src/sdk/instruments/Traffic.ts:43
The most recent calculated ground speed of this contact. Equal to NaN if not yet been calculated.
groundTrack
readonly
groundTrack:number
Defined in: src/sdk/instruments/Traffic.ts:46
The most recent calculated ground track of this contact. Equal to NaN if not yet been calculated.
lastAltitude
readonly
lastAltitude:NumberUnitReadOnly
<Distance
>
Defined in: src/sdk/instruments/Traffic.ts:37
The altitude of this contact at time of last contact.
lastContactTime
readonly
lastContactTime:number
Defined in: src/sdk/instruments/Traffic.ts:31
The last time of contact, in sim time, as a UNIX millisecond timestamp.
lastHeading
readonly
lastHeading:number
Defined in: src/sdk/instruments/Traffic.ts:40
The heading of this contact at time of last contact.
lastPosition
readonly
lastPosition:GeoPointReadOnly
Defined in: src/sdk/instruments/Traffic.ts:34
The position of this contact at time of last contact.
uid
readonly
uid:number
Defined in: src/sdk/instruments/Traffic.ts:28
A unique ID number assigned to this contact.
verticalSpeed
readonly
verticalSpeed:NumberUnitReadOnly
<Speed
>
Defined in: src/sdk/instruments/Traffic.ts:49
The most recent calculaed vertical speed of this contact. Equal to NaN if not yet been calculated.
Methods
predict()
predict(
simTime
,positionOut
,altitudeOut
):void
Defined in: src/sdk/instruments/Traffic.ts:59
Calculates the predicted position and altitude of this contact at a specified time based on the most recent available data and stores the results in the supplied objects. If insufficient data are available to calculate the prediction, the results will be equal to NaN.
Parameters
Parameter | Type | Description |
---|---|---|
simTime | number | The sim time for which to calculate the prediction, as a UNIX millisecond timestamp. |
positionOut | GeoPoint | A GeoPoint object to which to write the predicted position. |
altitudeOut | NumberUnit <Distance > | A NumberUnit object to which to write the predicted altitude. |
Returns
void