fixing JS8 messages

This commit is contained in:
Christian Raßmann 2023-07-25 23:24:47 +02:00
parent cbcf766ff3
commit 5a72981519
1 changed files with 7 additions and 2 deletions

View File

@ -99,15 +99,20 @@ class Js8Parser(AudioChopperParser):
frame = Js8().parse_message(msg)
if "ssid" in frame.source:
callsign = "{callsign}-{ssid}".format(frame.source)
else:
callsign = frame.source["callsign"]
self.pushDecode(band)
if (isinstance(frame, Js8FrameHeartbeat) or isinstance(frame, Js8FrameCompound)) and frame.grid:
Map.getSharedInstance().updateLocation(
frame.callsign, LocatorLocation(frame.grid), "JS8", band
callsign, LocatorLocation(frame.grid), "JS8", band
)
ReportingEngine.getSharedInstance().spot(
{
"callsign": frame.callsign,
"callsign": callsign,
"mode": "JS8",
"locator": frame.grid,
"freq": freq + frame.freq,