Permalink
Browse files

Hack timedelta for simulator

  • Loading branch information...
m3d committed Nov 29, 2017
1 parent 581d9e3 commit 0328ba3e244c96b9817f261ac76dc8f078058c44
Showing with 3 additions and 0 deletions.
  1. +3 −0 myr2017.py
@@ -123,6 +123,9 @@ def turn_deg(robot, angle_deg):
prev_time = robot.time
robot.update()
dt = robot.time - prev_time
dt = timedelta(microseconds=100000) # hack for simulation
gyro_sum += robot.gyro_raw[2] # time is required!
num_updates += 1
# the updates are 10Hz (based on laser measurements)

0 comments on commit 0328ba3

Please sign in to comment.