Interface: TrafficContact
Defined in: src/sdk/instruments/Traffic.ts:26
A traffic contact.
Properties
groundSpeed
readonlygroundSpeed: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
readonlygroundTrack: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
readonlylastAltitude:NumberUnitReadOnly<Distance>
Defined in: src/sdk/instruments/Traffic.ts:37
The altitude of this contact at time of last contact.
lastContactTime
readonlylastContactTime:number
Defined in: src/sdk/instruments/Traffic.ts:31
The last time of contact, in sim time, as a Javascript timestamp.
lastHeading
readonlylastHeading:number
Defined in: src/sdk/instruments/Traffic.ts:40
The heading of this contact at time of last contact, in degrees.
lastPosition
readonlylastPosition:GeoPointReadOnly
Defined in: src/sdk/instruments/Traffic.ts:34
The position of this contact at time of last contact.
uid
readonlyuid:number
Defined in: src/sdk/instruments/Traffic.ts:28
A unique ID number assigned to this contact.
verticalSpeed
readonlyverticalSpeed:NumberUnitReadOnly<Speed>
Defined in: src/sdk/instruments/Traffic.ts:49
The most recent calculated 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