@@ -170,7 +170,7 @@ def __init__(self):
170
170
171
171
@property
172
172
def accel_range (self ):
173
- """Get and set the accelerometer range. Must be a value of:
173
+ """The accelerometer range. Must be a value of:
174
174
- ACCELRANGE_2G
175
175
- ACCELRANGE_4G
176
176
- ACCELRANGE_6G
@@ -201,7 +201,7 @@ def accel_range(self, val):
201
201
202
202
@property
203
203
def mag_gain (self ):
204
- """Get and set the magnetometer gain. Must be a value of:
204
+ """The magnetometer gain. Must be a value of:
205
205
- MAGGAIN_2GAUSS
206
206
- MAGGAIN_4GAUSS
207
207
- MAGGAIN_8GAUSS
@@ -229,7 +229,7 @@ def mag_gain(self, val):
229
229
230
230
@property
231
231
def gyro_scale (self ):
232
- """Get and set the gyroscope scale. Must be a value of:
232
+ """The gyroscope scale. Must be a value of:
233
233
- GYROSCALE_245DPS
234
234
- GYROSCALE_500DPS
235
235
- GYROSCALE_2000DPS
@@ -265,7 +265,7 @@ def read_accel_raw(self):
265
265
266
266
@property
267
267
def accelerometer (self ):
268
- """Get the accelerometer X, Y, Z axis values as a 3-tuple of
268
+ """Returns the accelerometer X, Y, Z axis values as a 3-tuple of
269
269
m/s^2 values.
270
270
"""
271
271
raw = self .read_accel_raw ()
@@ -286,7 +286,7 @@ def read_mag_raw(self):
286
286
287
287
@property
288
288
def magnetometer (self ):
289
- """Get the magnetometer X, Y, Z axis values as a 3-tuple of
289
+ """Returns the magnetometer X, Y, Z axis values as a 3-tuple of
290
290
gauss values.
291
291
"""
292
292
raw = self .read_mag_raw ()
@@ -306,7 +306,7 @@ def read_gyro_raw(self):
306
306
307
307
@property
308
308
def gyroscope (self ):
309
- """Get the gyroscope X, Y, Z axis values as a 3-tuple of
309
+ """Returns the gyroscope X, Y, Z axis values as a 3-tuple of
310
310
degrees/second values.
311
311
"""
312
312
raw = self .read_mag_raw ()
@@ -325,7 +325,7 @@ def read_temp_raw(self):
325
325
326
326
@property
327
327
def temperature (self ):
328
- """Get the temperature of the sensor in degrees Celsius."""
328
+ """Returns the temperature of the sensor in degrees Celsius."""
329
329
# This is just a guess since the starting point (21C here) isn't documented :(
330
330
temp = self .read_temp_raw ()
331
331
temp = 21.0 + temp / 8
0 commit comments