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
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")