Skip to content

Commit 6dac9fe

Browse files
committed
Some IMU comment changes, for clarity on scale parameters
1 parent 7d17712 commit 6dac9fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

XRPLib/imu.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def __init__(self, scl_pin: int, sda_pin: int, addr):
7474
self.gyro_offsets = [0,0,0]
7575
self.acc_offsets = [0,0,0]
7676

77-
self.sensivity = 8.75
7877
self.update_time = 0.004
7978
self.gyro_pitch_bias = 0
8079
self.adjusted_pitch = 0
@@ -294,7 +293,7 @@ def _temperature_irq(self):
294293

295294
def acc_scale(self, dat=None):
296295
"""
297-
Set the accelerometer scale. The scale can be 2, 4, 8, 16.
296+
Set the accelerometer scale. The scale can be '2g', '4g', '8g', or '16g'.
298297
Pass in no parameters to retrieve the current value
299298
"""
300299
if dat is None:
@@ -309,7 +308,7 @@ def acc_scale(self, dat=None):
309308

310309
def gyro_scale(self, dat=None):
311310
"""
312-
Set the gyroscope scale. The scale can be 125, 250, 500, 1000, 2000.
311+
Set the gyroscope scale. The scale can be '125', '250', '500', '1000', or '2000'.
313312
Pass in no parameters to retrieve the current value
314313
"""
315314
if (dat is None) or (dat == ''):

0 commit comments

Comments
 (0)