Track RSSI in PlaneObject.
This commit is contained in:
parent
b77d52bd1f
commit
ffe03fe749
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue