some data source fixes in regards to UAT

This commit is contained in:
Matthias Wirth
2019-10-13 17:56:25 +02:00
parent be31f6e187
commit 98cb0aaf49
3 changed files with 3 additions and 11 deletions

View File

@@ -158,8 +158,6 @@ function processReceiverUpdate(data, init) {
PlanesOrdered.push(plane);
if (uat) {
plane.receiver = "uat";
if (!displayUATasADSB)
plane.dataSource = "uat";
} else {
plane.receiver = "1090";
}
@@ -169,17 +167,11 @@ function processReceiverUpdate(data, init) {
if (uat) {
if (plane.receiver == "uat" || ac.seen_pos < 1.8 || init) {
plane.receiver = "uat";
if (!displayUATasADSB) {
plane.dataSource = "uat";
}
plane.updateData(uat_now, uat_last, ac, init);
}
} else {
if (plane.receiver == "1090" || ac.seen_pos < 1.8 || init) {
plane.receiver = "1090";
if (!displayUATasADSB) {
plane.dataSource = "adsb";
}
plane.updateData(now, last, ac, init);
}
}