New universal pubsub interface in zmq_socket.py. Needs more work.

This commit is contained in:
Nick Foster
2013-06-03 08:38:26 -04:00
parent 33874893b7
commit b71c978e27
7 changed files with 161 additions and 19 deletions

View File

@@ -69,9 +69,12 @@ class output_print(air_modes.parse):
pass
def output(self, msg):
parsed = self.parse(msg)
if parsed is not None:
try:
parsed = self.parse(msg)
if parsed is not None:
print self.parse(msg)
except ADSBError:
pass
def print0(self, shortdata, ecc):
[vs, cc, sl, ri, altitude] = self.parse0(shortdata)