merge-requests/203/head
Tag 2022-09-28 15:46:38 -07:00
rodzic 21ebb3fb8c
commit b177946a84
3 zmienionych plików z 23 dodań i 15 usunięć

Wyświetl plik

@ -268,7 +268,7 @@ function onAdiLoadComplete(adiBuffer, saveAdifFile, adifFileName, newFile)
finalMode, finalMode,
finalBand, finalBand,
confirmed, confirmed,
false, true,
finalRSTrecv, finalRSTrecv,
finalDxcc, finalDxcc,
finalState, finalState,
@ -344,7 +344,7 @@ function onAdiLoadComplete(adiBuffer, saveAdifFile, adifFileName, newFile)
finalMode, finalMode,
finalBand, finalBand,
false, false,
true, false,
finalRSTsent, finalRSTsent,
finalDxcc, finalDxcc,
null, null,
@ -366,7 +366,7 @@ function onAdiLoadComplete(adiBuffer, saveAdifFile, adifFileName, newFile)
finalMode, finalMode,
finalBand, finalBand,
false, false,
true, false,
null, null,
finalDxcc, finalDxcc,
null, null,
@ -388,7 +388,7 @@ function onAdiLoadComplete(adiBuffer, saveAdifFile, adifFileName, newFile)
finalMode, finalMode,
finalBand, finalBand,
false, false,
true, false,
null, null,
finalDxcc, finalDxcc,
null, null,

Wyświetl plik

@ -1064,7 +1064,7 @@ function addDeDx(
mode, mode,
band, band,
confirmed, confirmed,
notQso, isQSO,
finalRSTrecv, finalRSTrecv,
finalDxcc, finalDxcc,
finalState, finalState,
@ -1097,7 +1097,7 @@ function addDeDx(
var finalMsg = ifinalMsg.trim(); var finalMsg = ifinalMsg.trim();
if (finalMsg.length > 40) finalMsg = finalMsg.substring(0, 40) + "..."; if (finalMsg.length > 40) finalMsg = finalMsg.substring(0, 40) + "...";
var details = null; var details = null;
if (!notQso) if (isQSO)
{ {
var timeMod = finalTime - (finalTime % 360) + 180; var timeMod = finalTime - (finalTime % 360) + 180;
hash = unique(mode + band + finalDXcall + timeMod); hash = unique(mode + band + finalDXcall + timeMod);
@ -1495,12 +1495,12 @@ function addDeDx(
if (finalDxcc < 1) finalDxcc = callsignToDxcc(finalDXcall); if (finalDxcc < 1) finalDxcc = callsignToDxcc(finalDXcall);
hash = finalDXcall + band + mode; hash = finalDXcall + band + mode;
if (notQso) if (!isQSO)
{ {
if (hash in g_liveCallsigns) callsign = g_liveCallsigns[hash]; if (hash in g_liveCallsigns) callsign = g_liveCallsigns[hash];
} }
if (!notQso) if (isQSO)
{ {
if (validateMapBandAndMode(band, mode) && validatePropMode(finalPropMode)) if (validateMapBandAndMode(band, mode) && validatePropMode(finalPropMode))
{ {
@ -7655,7 +7655,7 @@ function handleWsjtxWSPR(newMessage)
"WSPR", "WSPR",
Number(newMessage.Frequency / 1000000).formatBand(), Number(newMessage.Frequency / 1000000).formatBand(),
false, false,
true, false,
null, null,
callsignToDxcc(newMessage.Callsign), callsignToDxcc(newMessage.Callsign),
null, null,

Wyświetl plik

@ -179,11 +179,11 @@ function reportPotaRBN(callSpot)
{ {
let report = { let report = {
activator: callSpot.activator, activator: callSpot.activator,
spotter: myDEcall, spotter: myDEcall + "-#",
frequency: String(parseInt(callSpot.frequency * 1000)), frequency: String(parseInt(callSpot.frequency * 1000)),
reference: callSpot.reference, reference: callSpot.reference,
mode: callSpot.mode, mode: callSpot.mode,
source: "GT", source: "RBN",
comments: callSpot.comments, comments: callSpot.comments,
activatorGrid: callSpot.activatorGrid, activatorGrid: callSpot.activatorGrid,
spotterGrid: callSpot.spotterGrid spotterGrid: callSpot.spotterGrid
@ -204,8 +204,16 @@ function reportPotaRBN(callSpot)
function rbnReportResult(buffer, flag, cookies) function rbnReportResult(buffer, flag, cookies)
{ {
// It worked, but do we take these spots? // It worked! process latest spots!
// console.log(String(buffer)); if (g_pota.spotsTimeout)
{
clearTimeout(g_pota.spotsTimeout);
g_pota.spotsTimeout = null;
}
processPotaSpots(String(buffer));
g_pota.spotsTimeout = setTimeout(getPotaSpots, 300000);
} }
function spotFromCallObj(callObj, park, inCount, rbnTime) function spotFromCallObj(callObj, park, inCount, rbnTime)
@ -213,7 +221,7 @@ function spotFromCallObj(callObj, park, inCount, rbnTime)
let callSpot = { let callSpot = {
activator: callObj.DEcall, activator: callObj.DEcall,
activatorGrid: callObj.grid, activatorGrid: callObj.grid,
spotter: myDEcall, spotter: myDEcall + "-#",
spotterGrid: myDEGrid, spotterGrid: myDEGrid,
frequency: Number((g_instances[callObj.instance].status.Frequency / 1000000).toFixed(3)), frequency: Number((g_instances[callObj.instance].status.Frequency / 1000000).toFixed(3)),
reference: park, reference: park,
@ -222,7 +230,7 @@ function spotFromCallObj(callObj, park, inCount, rbnTime)
spotTime: Date.now(), spotTime: Date.now(),
source: "GT", source: "GT",
count: inCount + 1, count: inCount + 1,
comments: "GT " + callObj.RSTsent + " dB " + myDEGrid comments: "GT " + callObj.RSTsent + " dB " + myDEGrid + " via " + myDEcall + "-#"
}; };
return callSpot; return callSpot;
} }