and more mlat detection stuff

This commit is contained in:
Matthias Wirth
2019-09-21 17:54:38 +02:00
parent a45ebf3d1a
commit 0e2b99466a

View File

@@ -694,7 +694,7 @@ PlaneObject.prototype.updateData = function(receiver_timestamp, data, init) {
if (data.mlat != null && data.mlat.indexOf("lat") >= 0) {
this.dataSource = "mlat";
} else if (this.dataSource != "uat") {
if (this.position && data.type == null)
if (data.lat != null && data.type == null)
this.dataSource = "adsb";
else if (data.type && data.type.substring(0,4) == "tisb")
this.dataSource = "tisb";