1
0
Fork 0
main
Kim - DG9VH 4 years ago
parent 4514dbec16
commit cb27cfbbd8

Binary file not shown.

@ -99,41 +99,62 @@ function getLastHeard(document, event) {
// 01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 // 01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
// M: 2020-11-01 21:33:27.454 YSF, received network data from DG2MAS to DG-ID 0 at DG2MAS // M: 2020-11-01 21:33:27.454 YSF, received network data from DG2MAS to DG-ID 0 at DG2MAS
// M: 2020-11-01 21:33:35.025 YSF, received network end of transmission from DG2MAS to DG-ID 0, 7.7 seconds, 0% packet loss, BER: 0.0% // M: 2020-11-01 21:33:35.025 YSF, received network end of transmission from DG2MAS to DG-ID 0, 7.7 seconds, 0% packet loss, BER: 0.0%
if (event.data.indexOf("Talker Alias") < 0 && event.data.indexOf("Downlink Activate") < 9) {
$(document).ready(function() { $(document).ready(function() {
var rowIndexes = []; var rowIndexes = [],
timestamp = getTimestamp(event.data),
mode = getMode(event.data),
callsign = getCallsign(event.data),
target = getTarget(event.data),
source = getSource(event.data),
duration = getDuration(event.data),
loss = getLoss(event.data),
ber = getBER(event.data),
addToQSO = getAddToQSO(event.data);
if (mode == "POCSAG") {
callsign = "POCSAG";
target = "";
source = "";
duration = "";
loss = "";
ber = "";
addToQSO = "";
}
t_lh.rows( function ( idx, data, node ) { t_lh.rows( function ( idx, data, node ) {
if(data[2] === getCallsign(event.data)){ if(data[2] === callsign){
rowIndexes.push(idx); rowIndexes.push(idx);
} }
return false; return false;
}); });
if (rowIndexes[0]) { if (rowIndexes[0]) {
newData = [ newData = [
getTimestamp(event.data), timestamp,
getMode(event.data), mode,
getCallsign(event.data), callsign,
getTarget(event.data), target,
getSource(event.data), source,
getDuration(event.data), duration,
getLoss(event.data), loss,
getBER(event.data), ber,
getAddToQSO(event.data) addToQSO
] ]
t_lh.row(rowIndexes[0]).data( newData ).draw(); t_lh.row(rowIndexes[0]).data( newData ).draw();
} else { } else {
t_lh.row.add( [ t_lh.row.add( [
getTimestamp(event.data), timestamp,
getMode(event.data), mode,
getCallsign(event.data), callsign,
getTarget(event.data), target,
getSource(event.data), source,
getDuration(event.data), duration,
getLoss(event.data), loss,
getBER(event.data), ber,
getAddToQSO(event.data) addToQSO
] ).draw(); ] ).draw();
} }
}); });
}
} }
function getLocalHeard(document, event) { function getLocalHeard(document, event) {

Loading…
Cancel
Save