← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
path: root/bt.py
diff options
context:
space:
mode:
authorEdvin <[email protected]>2025-05-06 12:11:35 +0200
committerEdvin <[email protected]>2025-05-06 12:11:35 +0200
commit66557fa2666712e205924544e60afe46c13b0a24 (patch)
tree6a3104621eaac650a3a457b0fdb35ed337bf1018 /bt.py
parent7b75f8477e6591c5897e2c2d7fa21e69a6a2fc15 (diff)
Added some direction code
Diffstat (limited to 'bt.py')
-rwxr-xr-xbt.py9
1 files changed, 4 insertions, 5 deletions
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()