diff options
| author | Edvin <[email protected]> | 2025-05-06 12:11:35 +0200 |
|---|---|---|
| committer | Edvin <[email protected]> | 2025-05-06 12:11:35 +0200 |
| commit | 66557fa2666712e205924544e60afe46c13b0a24 (patch) | |
| tree | 6a3104621eaac650a3a457b0fdb35ed337bf1018 /bt.py | |
| parent | 7b75f8477e6591c5897e2c2d7fa21e69a6a2fc15 (diff) | |
Added some direction code
Diffstat (limited to 'bt.py')
| -rwxr-xr-x | bt.py | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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() |
