From 9716d6e7a33b9b2cc776c16ad72f180bf4918ba9 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 11 Feb 2025 16:31:20 -0500 Subject: [PATCH] Update fc_block_decode.py copy image, csv newline --- groundstation/fc_block_decode.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/groundstation/fc_block_decode.py b/groundstation/fc_block_decode.py index ee5971ea..1c7d65ca 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -36,6 +36,8 @@ system("sudo rm " + image_dir + image) system("sudo rm " + html_dir + "*") system("sudo rm " + html_dir + "/images/*") +system("cp /home/pi/CubeSatSim/sstv/sstv_image_1_320_x_256.jpg " + html_dir + "image_file.jpeg") + head_string = '\n\n

FunCube CubeSatSim Telemetry

' + \ '

  
' foot_string = ' All images ' @@ -45,7 +47,7 @@ telem_string_format = " Image: {image_id:3d} count: {image_count:2d}

" + \ " Freq: {frequency_string} errors: {errors} Seq: {sequence:d} {frame_type} frames: {frame_count:d}" csv_format = "{frame_count:4d}, {frequency_string:7s}, {errors:3d}, {first_byte: 2x}, {sequence:5d}, {frame_type:9s}, {image_id:3d}, {image_count:2d}, " + \ - "{Vx:5d}, {Vy:5d}, {Vz:5d}, {Ix:5d}, {Iy:5d}, {Iz:5d}, {Vb:5d}, {Ib:5d}" + "{Vx:5d}, {Vy:5d}, {Vz:5d}, {Ix:5d}, {Iy:5d}, {Iz:5d}, {Vb:5d}, {Ib:5d} \n" telem_string = fstr(telem_string_format)