@@ -362,7 +362,7 @@ def magnetic(self):
362
362
"""Gives the raw magnetometer readings in microteslas.
363
363
Returns an empty tuple of length 3 when this property has been disabled by the current mode.
364
364
"""
365
- if self .mode not in [0x00 , 0x03 , 0x05 , 0x08 ]:
365
+ if self .mode not in [0x00 , 0X01 , 0x03 , 0x05 , 0x08 ]:
366
366
return self ._magnetic
367
367
return (None , None , None )
368
368
@@ -388,7 +388,7 @@ def euler(self):
388
388
"""Gives the calculated orientation angles, in degrees.
389
389
Returns an empty tuple of length 3 when this property has been disabled by the current mode.
390
390
"""
391
- if self .mode in [0x09 , 0x0B , 0x0C ]:
391
+ if self .mode in [0x09 , 0x0B , 0x0C , 0x08 , 0x0A ]:
392
392
return self ._euler
393
393
return (None , None , None )
394
394
@@ -401,7 +401,7 @@ def quaternion(self):
401
401
"""Gives the calculated orientation as a quaternion.
402
402
Returns an empty tuple of length 3 when this property has been disabled by the current mode.
403
403
"""
404
- if self .mode in [0x09 , 0x0B , 0x0C ]:
404
+ if self .mode in [0x09 , 0x0B , 0x0C , 0x08 , 0x0A ]:
405
405
return self ._quaternion
406
406
return (None , None , None , None )
407
407
0 commit comments