From 973d2c26abde257c842548c4af0ff4c3a3a8162c Mon Sep 17 00:00:00 2001 From: Edvin Date: Fri, 25 Apr 2025 08:42:55 +0200 Subject: Implemented collected data transfer, graphical control interface and improved README --- DWM.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 DWM.py (limited to 'DWM.py') diff --git a/DWM.py b/DWM.py old mode 100644 new mode 100755 index 86cb07e..ccee6a7 --- a/DWM.py +++ b/DWM.py @@ -45,12 +45,12 @@ with serial.Serial('/dev/ttyACM0', 115200, timeout = 1) as s: sleep(0.1) s.write(b"\r") - str = f"{s.readline().decode('utf-8').strip('\n')}" + str = s.readline().decode('utf-8').strip('\n') if "apg: x:" in str: str = str.replace("apg: ", "") print(str) - with open("posititon.txt", "w") as f: + with open("position.txt", "w") as f: f.write(str + '\n') f.close() -- cgit v1.2.3