diff options
| author | Edvin <[email protected]> | 2025-05-07 08:39:43 +0200 |
|---|---|---|
| committer | Edvin <[email protected]> | 2025-05-07 08:39:43 +0200 |
| commit | e71a81c6635e3c3660e087ba9b3ff6468d48e236 (patch) | |
| tree | 4e566f0a4cca65a9a213c3683590ea270f9f21a0 /bt.py | |
| parent | 2dce42a6f87dbebc37e1eb756b60af51eca409c6 (diff) | |
Implmented UKF and some course adjusting
Diffstat (limited to 'bt.py')
| -rwxr-xr-x | bt.py | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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: |
