Reverting a fix to the loop -- misunderstood my own code! Un-broke the receive.
This commit is contained in:
parent
dedf60fd4e
commit
a2aad97f5b
@ -31,7 +31,9 @@ longdata = long(sys.argv[2], 16)
|
|||||||
parity = long(sys.argv[3], 16)
|
parity = long(sys.argv[3], 16)
|
||||||
ecc = long(sys.argv[4], 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:
|
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,)
|
print "Altitude: %i\nLatitude: %.6f\nLongitude: %.6f\nRange: %.2f\nBearing: %i\n" % (altitude, decoded_lat, decoded_lon, rnge, bearing,)
|
||||||
|
@ -180,7 +180,7 @@ if __name__ == '__main__':
|
|||||||
while queue.empty_p() == 0 :
|
while queue.empty_p() == 0 :
|
||||||
msg = queue.delete_head() #blocking read
|
msg = queue.delete_head() #blocking read
|
||||||
|
|
||||||
for out in outputs:
|
for out in outputs:
|
||||||
out(msg.to_string())
|
out(msg.to_string())
|
||||||
|
|
||||||
elif runner.done:
|
elif runner.done:
|
||||||
|
Loading…
Reference in New Issue
Block a user