Changed heading response to serialize to JSON.
This commit is contained in:
parent
5a784bc23b
commit
2970b23270
@ -274,8 +274,7 @@ local function determineHeading()
|
|||||||
end
|
end
|
||||||
heading = fDelta
|
heading = fDelta
|
||||||
rightAxis = position - oldPos
|
rightAxis = position - oldPos
|
||||||
rightAxis = vector.new(rightAxis.x, rightAxis.y, rightAxis.z)
|
sendLog(HEADING, "Heading obtained. \nForward: " .. textutils.serialiseJSON(heading) .. "\nRight direction: " .. textutils.serialiseJSON(rightAxis))
|
||||||
sendLog(HEADING, "Heading obtained. \nForward: " .. heading .. "\nRight direction: " .. rightAxis)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function moveBy(delta, forward, right)
|
local function moveBy(delta, forward, right)
|
||||||
|
Loading…
Reference in New Issue
Block a user