← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
path: root/bt.py
diff options
context:
space:
mode:
authorEdvin <[email protected]>2025-05-07 08:39:43 +0200
committerEdvin <[email protected]>2025-05-07 08:39:43 +0200
commite71a81c6635e3c3660e087ba9b3ff6468d48e236 (patch)
tree4e566f0a4cca65a9a213c3683590ea270f9f21a0 /bt.py
parent2dce42a6f87dbebc37e1eb756b60af51eca409c6 (diff)
Implmented UKF and some course adjusting
Diffstat (limited to 'bt.py')
-rwxr-xr-xbt.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/bt.py b/bt.py
index 98fc45e..a341f22 100755
--- a/bt.py
+++ b/bt.py
@@ -41,15 +41,15 @@ while read != "1000":
# Send DWM data
if read == "10":
sleep(1)
- with open("position_mean.txt", "r") as f:
- for line in f:
- line = line.strip("\n")
- x, y = line.split(",")
- x = int(x)
- y = int(y)
- recv_sock.send(f"{x}, {y}, ".encode())
- # message = message + f"{x}, {y}, "
- f.close()
+ with open("position_mean.txt", "r") as f:
+ for line in f:
+ line = line.strip("\n")
+ x, y = line.split(",")
+ x = int(x)
+ y = int(y)
+ recv_sock.send(f"{x}, {y}, ".encode())
+ # message = message + f"{x}, {y}, "
+ f.close()
else:
with open("position.txt", "r") as f:
for line in f: