Emit adsb version in json & faup1090. Show it in skyview.

This commit is contained in:
Oliver Jowett 2017-06-15 23:42:05 +01:00
parent 17c8265ce8
commit e3c8c91852
4 changed files with 38 additions and 3 deletions

View file

@ -26,6 +26,7 @@ function PlaneObject(icao) {
this.alt_setting = null;
this.baro_rate = null;
this.geom_rate = null;
this.version = null;
this.prev_position = null;
this.position = null;
@ -468,6 +469,8 @@ PlaneObject.prototype.updateData = function(receiver_timestamp, data) {
this.squawk = data.squawk;
if (typeof data.category !== "undefined")
this.category = data.category;
if (typeof data.version !== "undefined")
this.version = data.version;
if (typeof data.lat !== "undefined") {
this.position = [data.lon, data.lat];