diff --git a/src/python/cpr-test.py b/src/python/cpr-test.py index eaf7064..7e22ebc 100755 --- a/src/python/cpr-test.py +++ b/src/python/cpr-test.py @@ -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,) diff --git a/src/python/uhd_modes.py b/src/python/uhd_modes.py index 6ff8cd2..6c16c32 100755 --- a/src/python/uhd_modes.py +++ b/src/python/uhd_modes.py @@ -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: