From 219f17a655dab29e09a7441c88f33e620adc2780 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 7 Feb 2025 22:12:09 -0500 Subject: [PATCH] Update fc_block_decode.py add prints --- groundstation/fc_block_decode.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/groundstation/fc_block_decode.py b/groundstation/fc_block_decode.py index 1fda65df..6eeb01de 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -64,7 +64,7 @@ if __name__ == "__main__": print("File error") # try: filename = "/home/pi/fctelem/image_file" + str(image_count) + "." + str(image_index) + ".jpeg" - system("/home/pi/ssdv/ssdv -d -J /home/pi/fctelem/image_file " + filename + " &> ssdv_output") + system("/home/pi/ssdv/ssdv -d -J /home/pi/fctelem/image_file " + filename + " &> /home/pi/fctelem/ssdv_output") # process = subprocess.run(["/home/pi/ssdv/ssdv","-d","-J", "image_file", filename], text=True) # print("\n\n RESULT: \n") # print(process) @@ -72,7 +72,10 @@ if __name__ == "__main__": # print(process.stdout) # s = io.StringIO(process.stdout) # for line in s: + print("After ssdv") + system("cat /home/pi/fctelem/ssdv_output") with open("/home/pi/fctelem/ssdv_output", "r") as file: + print("Starting with") for line in file: print("line:") print(line)