From 6da6a06295f35da303c5b83bb50e542977b1965c Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Thu, 19 Feb 2026 23:43:48 -0500 Subject: [PATCH] fix: Add debug logging for current position during status broadcast --- turtle.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/turtle.lua b/turtle.lua index e92495b..04c42ed 100644 --- a/turtle.lua +++ b/turtle.lua @@ -414,6 +414,14 @@ function broadcastStatus() -- Don't update position on every broadcast to avoid GPS delays -- Position will be updated by movement functions + -- Debug: Log current position + if state.position then + print(string.format("Broadcasting position: X=%d Y=%d Z=%d", + state.position.x, state.position.y, state.position.z)) + else + print("Broadcasting with NO POSITION (waiting for GPS)") + end + -- Scan surrounding blocks for map visualization local surroundings = {} local hasBlock, data