wifi rtt data in editor
This commit is contained in:
parent
4227288e6d
commit
d45bcfb2fb
1 changed files with 7 additions and 0 deletions
|
@ -1304,6 +1304,13 @@ editor = {
|
||||||
item.rssi = item.level;
|
item.rssi = item.level;
|
||||||
delete item.level
|
delete item.level
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item.rtt !== undefined) {
|
||||||
|
item.distance = item.rtt.distance_mm / 1000;
|
||||||
|
item.distance_sd = item.rtt.distance_std_dev_mm / 1000;
|
||||||
|
delete item.rtt;
|
||||||
|
}
|
||||||
|
|
||||||
apid = 'ap-'+item.bssid.replace(/:/g, '-');
|
apid = 'ap-'+item.bssid.replace(/:/g, '-');
|
||||||
line = $table.find('tr.'+apid);
|
line = $table.find('tr.'+apid);
|
||||||
color = Math.max(0, Math.min(50, item.rssi+80));
|
color = Math.max(0, Math.min(50, item.rssi+80));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue