From 66557fa2666712e205924544e60afe46c13b0a24 Mon Sep 17 00:00:00 2001 From: Edvin Date: Tue, 6 May 2025 12:11:35 +0200 Subject: Added some direction code --- bt.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'bt.py') diff --git a/bt.py b/bt.py index 2f0a493..8de8d95 100755 --- a/bt.py +++ b/bt.py @@ -31,7 +31,7 @@ while read != "1000": else: sleep(1) - print("0\r") + # print("0\r") # print(f"Sending: 'Acknowledge: {read}'") # Acknowledge ÖS command @@ -42,10 +42,9 @@ while read != "1000": with open("position.txt", "r") as f: for line in f: line = line.strip("\n") - x, y, z, qf = line.split(",") - x = int(float(x) * 1000) - y = int(float(y) * 1000) - print(f"x: {x}, y: {y}") + x, y = line.split(",") + x = int(x) + y = int(y) recv_sock.send(f"{x}, {y}, ".encode()) # message = message + f"{x}, {y}, " f.close() -- cgit v1.2.3