Skip to content

Commit

Permalink
Fixed bug in gryo property
Browse files Browse the repository at this point in the history
The gyro property now returns the gyroscope measurement instead of the magnetometer measurement.
  • Loading branch information
aarondewindt authored Sep 16, 2018
1 parent e91510f commit 7a30769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_lsm9ds1.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def gyro(self):
"""The gyroscope X, Y, Z axis values as a 3-tuple of
degrees/second values.
"""
raw = self.read_mag_raw()
raw = self.read_gyro_raw()
return map(lambda x: x * self._gyro_dps_digit, raw)

def read_temp_raw(self):
Expand Down

0 comments on commit 7a30769

Please sign in to comment.