Update fc_block_decode.py add more \

fc-7
Alan Johnston 10 months ago committed by GitHub
parent 6138291b64
commit b95a31751f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -91,7 +91,7 @@ if __name__ == "__main__":
except:
print("File error")
# try:
system("/home/pi/ssdv/ssdv -d -J /home/pi/fctelem/image_file_payload " +
system("/home/pi/ssdv/ssdv -d -J /home/pi/fctelem/image_file_payload " +
"/home/pi/fctelem/image_file_payload.jpeg 2>&1 | sudo tee /home/pi/fctelem/ssdv_output")
with open("/home/pi/fctelem/ssdv_output", "r") as file:
for line in file:
@ -126,8 +126,8 @@ if __name__ == "__main__":
filename = "/home/pi/fctelem/image_file" + str(image_id) + "." + str(image_count) + ".jpeg"
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}<p>" +
"Vx: {Vx:5d} mV Vy: {Vy:5d} mV Vz: {Vz:5d} mV<p>Ix: {Ix:5d} mA Iy: {Iy:5d} mA Iz: {Iz:5d} mA<p>" +
telem_string = f"\nSequence number: {sequence:5d} Image ID: {image_id:3d} count: {image_count:2d}<p>" + \
"Vx: {Vx:5d} mV Vy: {Vy:5d} mV Vz: {Vz:5d} mV<p>Ix: {Ix:5d} mA Iy: {Iy:5d} mA Iz: {Iz:5d} mA<p>" + \
"Vb: {Vb:5d} mV Ib: {Ib:5d} mA"
with open("/home/pi/CubeSatSim/groundstation/public_html/index.html", "w") as html_file:
html_file.write(head_string)

Loading…
Cancel
Save

Powered by TurnKey Linux.