From 42148b929dd08e1a7f36048a97afa6400b4a7cc7 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 8 Feb 2025 16:12:50 -0500 Subject: [PATCH] Update fc_block_decode.py try seq float --- 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 c72a9339..00fdd82a 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -16,7 +16,7 @@ FC_SW = 50 FC_PAYLOAD = 55 extended = 1 -sequence = 0 +sequence = 0.0 image_id = 0 image_count = 0 Vx = 0 @@ -25,7 +25,7 @@ Vz = 0 head_string = '\n\nFunCube CubeSatSim Telemetry\n

\n

' foot_string = "

\n" -telem_string = f"\nSequence number: {sequence:5.0d} Image ID: {image_id:3.0d} count: {image_count:2.0d}

Vx: {Vx:5.0d} mV Vy: {Vy:5.0d} mV Vz: {Vz:5.0d} mV" +telem_string = f"\nSequence number: {sequence:5.0f} Image ID: {image_id:3d} count: {image_count:2d}

Vx: {Vx:5d} mV Vy: {Vy:5d} mV Vz: {Vz:5d} mV" with open("/home/pi/CubeSatSim/groundstation/public_html/index.html", "w") as html_file: html_file.write(head_string) html_file.write(telem_string)