From 030bd922eedddc71f514ca44d668d0370b5329e1 Mon Sep 17 00:00:00 2001 From: spv Date: Wed, 30 Jul 2025 10:46:30 -0400 Subject: last night's signal hack --- src/log_shit.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/log_shit.py') 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() -- cgit v1.2.3