diff --git a/src/blackcore/vatsim/networkvatlib.cpp b/src/blackcore/vatsim/networkvatlib.cpp index 5981e085d..14b5646b8 100644 --- a/src/blackcore/vatsim/networkvatlib.cpp +++ b/src/blackcore/vatsim/networkvatlib.cpp @@ -1045,9 +1045,14 @@ namespace BlackCore freq.switchUnit(CFrequencyUnit::MHz()); // we would not need to bother, but this makes it easier to identify CLength range(pos->visibleRange, CLengthUnit::NM()); QString cs = cbvar_cast(cbvar)->fromFSD(callsign); + + // Filter non-ATC like OBS stations, like pilots logging in as shared cockpit co-pilots. + if (pos->facility == vatFacilityTypeUnknown && !cs.endsWith("_OBS")) { return; } + // ATIS often have a range of 0 nm. Correct this to a proper value. if (cs.contains("_ATIS") && pos->visibleRange == 0) { range.setValueSameUnit(150.0); } CCoordinateGeodetic position(pos->latitude, pos->longitude, 0); + emit cbvar_cast(cbvar)->atcPositionUpdate(CCallsign(cs, CCallsign::Atc), freq, position, range); }