From c94635407b1096e453139acf2556120a9d22ba80 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 7 Feb 2025 15:11:54 -0500 Subject: [PATCH] Update fc_block_decode.py print output of ssdv --- 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 12598763..8e7243e7 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -62,7 +62,10 @@ if __name__ == "__main__": print("File error") try: filename = "image_file" + str(image_count) + "." + str(image_index) + ".jpeg" - system("/home/pi/ssdv/ssdv -d -J image_file " + filename) +# system("/home/pi/ssdv/ssdv -d -J image_file " + filename) + process = subprocess.run(["/home/pi/ssdv/ssdv","-d","-J", image_file, filename], text=True) + print("\n\n RESULT: \n") + print(process) system("sudo cp " + filename + " /home/pi/CubeSatSim/groundstation/public_html/image_file.jpeg") # image = Image.open("image_file" + str(image_count) + "." + str(image_index) + ".jpeg") # image.show()