Changed heading response to serialize to JSON.
This commit is contained in:
parent
5a784bc23b
commit
2970b23270
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user