From 636632b1d03f14c45911c1051d39ff01bd6f118a Mon Sep 17 00:00:00 2001 From: spv Date: Tue, 29 Jul 2025 18:35:09 -0400 Subject: wait for gps fix, use file extensions, make the logging all professional-like --- src/log_shit.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/log_shit.py') diff --git a/src/log_shit.py b/src/log_shit.py index a60711f..7e5da43 100644 --- a/src/log_shit.py +++ b/src/log_shit.py @@ -16,20 +16,20 @@ except: print("fake file.") sys.exit(-1) -print("file: %s\n\ -how often: %f\n\ -how long: %f" % (log_file, how_often, time_to_do_it)) +print("[i] file: %s\n\ +[i] how often: %f\n\ +[i] how long: %f" % (log_file, how_often, time_to_do_it)) start = time.time() now = time.time -print("we out here, yo", flush=True) +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").split(",")] + lat, lon, alt = [float(x) for x in subprocess.getoutput("src/dirty_hack.sh").split(",")] - print("%f: %f, %f, %f" % (time.time_ns() / (10**9), lat, lon, alt)) + 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)) f.flush() -- cgit v1.2.3