Changed heading response to serialize to JSON.

This commit is contained in:
Harrison Deng 2021-05-03 15:43:15 -05:00
parent 5a784bc23b
commit 2970b23270

View File

@ -274,8 +274,7 @@ local function determineHeading()
end
heading = fDelta
rightAxis = position - oldPos
rightAxis = vector.new(rightAxis.x, rightAxis.y, rightAxis.z)
sendLog(HEADING, "Heading obtained. \nForward: " .. heading .. "\nRight direction: " .. rightAxis)
sendLog(HEADING, "Heading obtained. \nForward: " .. textutils.serialiseJSON(heading) .. "\nRight direction: " .. textutils.serialiseJSON(rightAxis))
end
local function moveBy(delta, forward, right)