Track RSSI in PlaneObject.

This commit is contained in:
Oliver Jowett 2015-01-22 15:31:10 +00:00
parent b77d52bd1f
commit ffe03fe749

View file

@ -48,6 +48,7 @@ function PlaneObject(icao) {
// Data packet numbers // Data packet numbers
this.messages = null; this.messages = null;
this.rssi = null;
// Track history as a series of line segments // Track history as a series of line segments
this.track_linesegs = []; this.track_linesegs = [];
@ -219,6 +220,7 @@ PlaneObject.prototype.updateIcon = function() {
PlaneObject.prototype.updateData = function(receiver_timestamp, data) { PlaneObject.prototype.updateData = function(receiver_timestamp, data) {
// Update all of our data // Update all of our data
this.messages = data.messages; this.messages = data.messages;
this.rssi = data.rssi;
this.last_message_time = receiver_timestamp - data.seen; this.last_message_time = receiver_timestamp - data.seen;
if (typeof data.altitude !== "undefined") if (typeof data.altitude !== "undefined")