Bugfixing
This commit is contained in:
parent
4514dbec16
commit
cb27cfbbd8
2 changed files with 41 additions and 20 deletions
Binary file not shown.
|
@ -99,42 +99,63 @@ 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) {
|
||||||
// 00000000001111111111222222222233333333334444444444555555555566666666667777777777888888888899999999990000000000111111111122222222223333333333
|
// 00000000001111111111222222222233333333334444444444555555555566666666667777777777888888888899999999990000000000111111111122222222223333333333
|
||||||
|
|
Loading…
Reference in a new issue