diff options
Diffstat (limited to 'src/log_shit.py')
| -rw-r--r-- | src/log_shit.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/log_shit.py b/src/log_shit.py index 7e5da43..295dc45 100644 --- a/src/log_shit.py +++ b/src/log_shit.py @@ -27,10 +27,12 @@ print("[i] we out here, yo", flush=True) while (start + time_to_do_it) > now(): # print("we out here, yo", flush=True) - lat, lon, alt = [float(x) for x in subprocess.getoutput("src/dirty_hack.sh").split(",")] + lat, lon, alt, sig = [float(x) for x in subprocess.getoutput("src/dirty_hack.sh").split(",")] - print("[i] %f: %f, %f, %f" % (time.time_ns() / (10**9), lat, lon, alt)) - f.write("%f: %f, %f, %f\n" % (time.time_ns() / (10**9), lat, lon, alt)) + sig /= 100 + + print("[i] %f: %f, %f, %f, %f" % (time.time_ns() / (10**9), lat, lon, alt, sig)) + f.write("%f: %f, %f, %f, %f\n" % (time.time_ns() / (10**9), lat, lon, alt, sig)) f.flush() |
