Skip to content

Commit

Permalink
update freq from 100 -> 200
Browse files Browse the repository at this point in the history
  • Loading branch information
DocGarbanzo committed Sep 28, 2024
1 parent 64c3e6b commit 4f9fb12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion donkeycar/parts/imu.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def poll(self):
self.matrix = self.ahrs.quaternion.to_matrix()
self.lin_accel = np.dot(self.matrix, accel_phys)
# remove gravity from world coordinate z-axis
self.lin_accel -= self.accel_zero
self.lin_accel[2] -= self.accel_zero[2]
delta_v = self.lin_accel * dt
self.speed += delta_v
self.pos += self.speed * dt
Expand Down

0 comments on commit 4f9fb12

Please sign in to comment.