From 9db9fcfafa534cefaf541e15018e9932eee3761e Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 8 Feb 2025 22:55:35 -0500 Subject: [PATCH] Update fc_block_decode.py fix formatting --- groundstation/fc_block_decode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/fc_block_decode.py b/groundstation/fc_block_decode.py index 22808f2d..046b3aa4 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -134,8 +134,8 @@ if __name__ == "__main__": system("cp " + filename + " /home/pi/CubeSatSim/groundstation/public_html/image_file.jpeg") telem_string = f"\nSequence number: {sequence:5d} Image ID: {image_id:3d} count: {image_count:2d}

" + \ f" Vx(mV): {Vx:5d} Vy(mV): {Vy:5d} Vz(mV): {Vz:5d}

" + \ - f" Ix(mA): {Ix:5d} Iy(mA): {Iy:5d} Iz(mA): {Iz:5d}

Vbat(mV): {Vb:5d} Ibat(mA): {Ib:5d}" with open("/home/pi/CubeSatSim/groundstation/public_html/index.html", "w") as html_file: - open("/home/pi/CubeSatSim/groundstation/public_html/index.html", "w") as html_file: + f" Ix(mA): {Ix:5d} Iy(mA): {Iy:5d} Iz(mA): {Iz:5d}

Vbat(mV): {Vb:5d} Ibat(mA): {Ib:5d}" + with open("/home/pi/CubeSatSim/groundstation/public_html/index.html", "w") as html_file: html_file.write(head_string) html_file.write(telem_string) html_file.write(foot_string)