Debug
This commit is contained in:
parent
343e393780
commit
4f07fa660b
@ -243,6 +243,12 @@ end
|
|||||||
|
|
||||||
-- main loop
|
-- main loop
|
||||||
while true do
|
while true do
|
||||||
|
print("---------------")
|
||||||
print("State: " .. T.state.current_state)
|
print("State: " .. T.state.current_state)
|
||||||
|
print("Pos: " .. T.state.x .. "," .. T.state.z .. "(" .. T.getorientation() .. ")")
|
||||||
T.state.current_state = state_machine[T.state.current_state]()
|
T.state.current_state = state_machine[T.state.current_state]()
|
||||||
|
|
||||||
|
write("Enter to step ")
|
||||||
|
repeat e, d = os.pullEvent() until e == "key" and d == 257
|
||||||
|
print("(OK)")
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user