We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c742e2f commit 37d5b9bCopy full SHA for 37d5b9b
XRPLib/imu.py
@@ -150,7 +150,7 @@ def is_connected(self):
150
:rtype: bool
151
"""
152
who_am_i = self._getreg(LSM_REG_WHO_AM_I)
153
- return who_am_i == 0x6C
+ return who_am_i == LSM_WHO_AM_I_VALUE
154
155
def reset(self, wait_for_reset = True, wait_timeout_ms = 100):
156
XRPLib/imu_defs.py
@@ -78,5 +78,6 @@
78
79
Other contants
80
81
+LSM_WHO_AM_I_VALUE = 0x6C
82
LSM_MG_PER_LSB_2G = 0.061
83
LSM_MDPS_PER_LSB_125DPS = 4.375
0 commit comments