From ce9a2fd0549348ac550014f55b04263762c25112 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 7 Feb 2025 22:56:47 -0500 Subject: [PATCH] Update fc_block_decode.py add prints --- groundstation/fc_block_decode.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/groundstation/fc_block_decode.py b/groundstation/fc_block_decode.py index a6ab1799..4d8665a3 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -77,13 +77,14 @@ if __name__ == "__main__": with open("/home/pi/fctelem/ssdv_output", "r") as file: print("Starting with") for line in file: - print("line:") - print(line) +# print("line:") +# print(line) if ((line.find("mage ID:")) > 0): print("\nImage ID found!\n") image_id_string = line.split() print(image_id_string) new_image_count = int(image_id_string[2], 16) + print(new_image_count) if (new_image_count != image_count): image_count = new_image_count print("End of image") @@ -97,6 +98,8 @@ if __name__ == "__main__": image_index = 0 else: image_index += 1 + print("image_index:") + print(image_index) 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")