Skip to content

Commit 08b43f6

Browse files
author
Tyler B
committed
Removed time.sleep() from accelrometer and magnometer reading methods.
1 parent d9b058a commit 08b43f6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

adafruit_icm20x.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ def acceleration(self):
266266
"""The x, y, z acceleration values returned in a 3-tuple and are in :math:`m / s ^ 2.`"""
267267
self._bank = 0
268268
raw_accel_data = self._raw_accel_data
269-
sleep(0.005)
270269

271270
x = self._scale_xl_data(raw_accel_data[0])
272271
y = self._scale_xl_data(raw_accel_data[1])
@@ -287,7 +286,6 @@ def gyro(self):
287286
return (x, y, z)
288287

289288
def _scale_xl_data(self, raw_measurement):
290-
sleep(0.005)
291289
return raw_measurement / AccelRange.lsb[self._cached_accel_range] * G_TO_ACCEL
292290

293291
def _scale_gyro_data(self, raw_measurement):
@@ -746,7 +744,6 @@ def magnetic(self):
746744

747745
self._bank = 0
748746
full_data = self._raw_mag_data
749-
sleep(0.005)
750747

751748
x = full_data[0] * _ICM20X_UT_PER_LSB
752749
y = full_data[1] * _ICM20X_UT_PER_LSB

0 commit comments

Comments
 (0)