From 81ace1bff2455cc0efbf2a1db787b11fbdc532bc Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 8 Feb 2025 22:44:14 -0500 Subject: [PATCH] Update fc_block_decode.py move units --- groundstation/fc_block_decode.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/groundstation/fc_block_decode.py b/groundstation/fc_block_decode.py index e1dc0ca2..7434e44b 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -33,8 +33,8 @@ head_string = '\n\n

  
' foot_string = "

\n" telem_string = f"\nSequence number: {sequence:5d} Image ID: {image_id:3d} count: {image_count:2d}

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

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

Vb: {Vb:5d} mV Ib: {Ib:5d} mA" + 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: {Vb:5d} mV Ibat: {Ib:5d} mA" with open("/home/pi/CubeSatSim/groundstation/public_html/index.html", "w") as html_file: html_file.write(head_string) html_file.write(telem_string) @@ -133,8 +133,8 @@ if __name__ == "__main__": system("/home/pi/ssdv/ssdv -d -J /home/pi/fctelem/image_file " + filename) 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: {Vx:5d} mV Vy: {Vy:5d} mV Vz: {Vz:5d} mV

Ix: {Ix:5d} mA Iy: {Iy:5d} mA Iz: {Iz:5d} mA

" + \ - f"Vb: {Vb:5d} mV Ib: {Ib:5d} mA" + 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: {Vb:5d} mV Ibat: {Ib:5d} mA" with open("/home/pi/CubeSatSim/groundstation/public_html/index.html", "w") as html_file: html_file.write(head_string) html_file.write(telem_string)