From 3f8c26bebc5846f504d5456afcf4b724c244d462 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 6 Feb 2025 15:48:31 -0500 Subject: [PATCH] Update fc_block_decode.py add image_count --- groundstation/fc_block_decode.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/groundstation/fc_block_decode.py b/groundstation/fc_block_decode.py index 4c822f71..ff767e14 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -11,6 +11,8 @@ FC_SW = 50 FC_PAYLOAD = 55 extended = 1 +image_count = 0 + if __name__ == "__main__": debug_mode = False counter = 1 @@ -57,5 +59,10 @@ if __name__ == "__main__": sleep(60) except: print("File error") + else: + print("End of image") + system("sudo mv image_file image_file" + str(image_count)) + print("Image count: ") + print(image_count++) else: print("Unknown Sat Id or Frame")