Live data display works.

This commit is contained in:
Nick Foster
2012-07-03 19:21:42 -07:00
parent 113c23b634
commit a853077bc2
4 changed files with 43 additions and 23 deletions

View File

@@ -60,15 +60,18 @@ class modes_output_print(modes_parse.modes_parse):
output += self.print20(data, ecc)
else:
output += "No handler for message type %i from %x (but it's in modes_parse)" % (msgtype, ecc)
print output
return output
except NoHandlerError as e:
output += "No handler for message type %s from %x" % (e.msgtype, ecc)
print output
return output
except MetricAltError:
pass
except CPRNoPositionError:
pass
def output(self, msg):
print self.parse(msg)
def print0(self, shortdata, ecc):
[vs, cc, sl, ri, altitude] = self.parse0(shortdata)