IAircraftSanityCheckerFirstGoodPosition Method |
Returns the first position that appears to be in line with the current position recorded
for the aircraft.
Namespace: VirtualRadar.InterfaceAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax GlobalCoordinate FirstGoodPosition(
int aircraftId
)
Function FirstGoodPosition (
aircraftId As Integer
) As GlobalCoordinate
GlobalCoordinate^ FirstGoodPosition(
int aircraftId
)
abstract FirstGoodPosition :
aircraftId : int -> GlobalCoordinate
Parameters
- aircraftId
- Type: SystemInt32
Return Value
Type:
GlobalCoordinateThe first good position seen for the aircraft or null if no good position currently exists.
Remarks
The sanity checker maintains a history of positions that have been received, up to the point
where a call to
CheckPosition(Int32, DateTime, Double, Double) returns a ProbablyRight result. Once a position
is probably right you can call this method to get the earliest position seen that is probably
correct when compared to the latest position. If the latest position is not ProbablyRight
then this method returns null. Once two ProbablyRight positions are seen in succession the
history will be wiped and the function will return null until the aircraft is removed from
the history (which happens after roughly 10 minutes regardless of configuration settings).
See Also