Commit e88246f7 authored by Chanelle Lee's avatar Chanelle Lee
Browse files

Bug in modulus of timestep to stop crazy amount of logging

parent cbb60b3b
......@@ -52,7 +52,7 @@ class ControllerThread(threading.Thread):
while not self.stopped() and retFlag is False:
retFlag = self.ePuck.controller()
self.ePuck.move()
if timestep & 10 == 0:
if (timestep % 10) == 0:
self.ePuck.logBelief(timestep)
timestep += 1
time.sleep(5)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment