add some more filters
This commit is contained in:
@@ -90,8 +90,15 @@ void PlugIn::OnRadarTargetPositionUpdate(EuroScopePlugIn::CRadarTarget radarTarg
|
|||||||
if (nullptr == flightPlan.GetFlightPlanData().GetPlanType() || 'I' != *flightPlan.GetFlightPlanData().GetPlanType())
|
if (nullptr == flightPlan.GetFlightPlanData().GetPlanType() || 'I' != *flightPlan.GetFlightPlanData().GetPlanType())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* TODO filter by distance to destination */
|
/* filter by distance to destination */
|
||||||
/* TODO filter by airborne identifier */
|
double distanceNM = flightPlan.GetDistanceToDestination();
|
||||||
|
if (250.0 < distanceNM)
|
||||||
|
return;
|
||||||
|
|
||||||
|
/* filter by airborne identifier (assume a GS>50kn and a big distance to the origin) */
|
||||||
|
if (50 > radarTarget.GetGS() || 10.0 > flightPlan.GetDistanceFromOrigin())
|
||||||
|
return;
|
||||||
|
|
||||||
/* TODO generate protobuf message */
|
/* TODO generate protobuf message */
|
||||||
/* TODO send aircraft update */
|
/* TODO send aircraft update */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user