From ffe03fe7492fdfdcfbd1149f68c63511e1350ddd Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 22 Jan 2015 15:31:10 +0000 Subject: [PATCH] Track RSSI in PlaneObject. --- public_html/planeObject.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public_html/planeObject.js b/public_html/planeObject.js index b60baba..5d36a2f 100644 --- a/public_html/planeObject.js +++ b/public_html/planeObject.js @@ -48,6 +48,7 @@ function PlaneObject(icao) { // Data packet numbers this.messages = null; + this.rssi = null; // Track history as a series of line segments this.track_linesegs = []; @@ -219,6 +220,7 @@ PlaneObject.prototype.updateIcon = function() { PlaneObject.prototype.updateData = function(receiver_timestamp, data) { // Update all of our data this.messages = data.messages; + this.rssi = data.rssi; this.last_message_time = receiver_timestamp - data.seen; if (typeof data.altitude !== "undefined")