Reverting a fix to the loop -- misunderstood my own code! Un-broke the receive.

This commit is contained in:
Nick Foster 2010-10-24 16:13:44 -07:00
parent dedf60fd4e
commit a2aad97f5b
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,9 @@ longdata = long(sys.argv[2], 16)
parity = long(sys.argv[3], 16)
ecc = long(sys.argv[4], 16)
[altitude, decoded_lat, decoded_lon, rnge, bearing] = parseBDS05(shortdata, longdata, parity, ecc)
parser = modes_parse(my_location)
[altitude, decoded_lat, decoded_lon, rnge, bearing] = parser.parseBDS06(shortdata, longdata, parity, ecc)
if decoded_lat is not None:
print "Altitude: %i\nLatitude: %.6f\nLongitude: %.6f\nRange: %.2f\nBearing: %i\n" % (altitude, decoded_lat, decoded_lon, rnge, bearing,)

View File

@ -180,7 +180,7 @@ if __name__ == '__main__':
while queue.empty_p() == 0 :
msg = queue.delete_head() #blocking read
for out in outputs:
for out in outputs:
out(msg.to_string())
elif runner.done: