aboutsummaryrefslogtreecommitdiff
path: root/src/log_shit.py
diff options
context:
space:
mode:
authorspv <spv@spv.sh>2025-07-30 10:46:30 -0400
committerspv <spv@spv.sh>2025-07-30 10:46:30 -0400
commit030bd922eedddc71f514ca44d668d0370b5329e1 (patch)
tree8f002a17e6c8d843e4a85f4ab4a178d301278e58 /src/log_shit.py
parent636632b1d03f14c45911c1051d39ff01bd6f118a (diff)
last night's signal hack
Diffstat (limited to 'src/log_shit.py')
-rw-r--r--src/log_shit.py8
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()