Fix SBS-1 output module (hopefully).
This commit is contained in:
parent
b29d049d7d
commit
13c98cada7
@ -123,7 +123,7 @@ class modes_output_sbs1(modes_parse.modes_parse):
|
|||||||
elif msgtype == 17:
|
elif msgtype == 17:
|
||||||
outmsg = self.pp17(shortdata, longdata)
|
outmsg = self.pp17(shortdata, longdata)
|
||||||
else:
|
else:
|
||||||
raise NoHandlerError
|
raise NoHandlerError(msgtype)
|
||||||
return outmsg
|
return outmsg
|
||||||
|
|
||||||
def pp0(self, shortdata, ecc):
|
def pp0(self, shortdata, ecc):
|
||||||
@ -147,7 +147,7 @@ class modes_output_sbs1(modes_parse.modes_parse):
|
|||||||
def pp5(self, shortdata, ecc):
|
def pp5(self, shortdata, ecc):
|
||||||
# I'm not sure what to do with the identiifcation shortdata & 0x1FFF
|
# I'm not sure what to do with the identiifcation shortdata & 0x1FFF
|
||||||
[datestr, timestr] = self.current_time()
|
[datestr, timestr] = self.current_time()
|
||||||
[fs, dr, um, ident] = self.parse5(shortdata)
|
[fs, dr, um] = self.parse5(shortdata)
|
||||||
aircraft_id = self.get_aircraft_id(ecc)
|
aircraft_id = self.get_aircraft_id(ecc)
|
||||||
retstr = "MSG,6,0,%i,%06X,%i,%s,%s,%s,%s,,,,,,,,," % (aircraft_id, ecc, aircraft_id+100, datestr, timestr, datestr, timestr)
|
retstr = "MSG,6,0,%i,%06X,%i,%s,%s,%s,%s,,,,,,,,," % (aircraft_id, ecc, aircraft_id+100, datestr, timestr, datestr, timestr)
|
||||||
return retstr + self.decode_fs(fs) + "\n"
|
return retstr + self.decode_fs(fs) + "\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user