class documentation

Class which provides interface to MPU6886 6-axis motion tracking device.

Method __enter__ Undocumented
Method __exit__ Undocumented
Method __init__ Undocumented
Method calibrate Undocumented
Method get_orientation Undocumented
Method sleep_off Undocumented
Method sleep_on Undocumented
Instance Variable address Undocumented
Instance Variable i2c Undocumented
Property acceleration Acceleration measured by the sensor. By default will return a 3-tuple of X, Y, Z axis acceleration values in m/s^2 as floats. Will return values in g if constructor was provided `accel_sf=SF_M_S2` parameter.
Property gyro X, Y, Z radians per second as floats.
Property temperature Die temperature in celcius as a float.
Property whoami Value of the whoami register.
Method _accel_fs Undocumented
Method _gyro_fs Undocumented
Method _register_char Undocumented
Method _register_short Undocumented
Method _register_three_shorts Undocumented
Instance Variable _accel_sf Undocumented
Instance Variable _accel_so Undocumented
Instance Variable _gyro_offset Undocumented
Instance Variable _gyro_sf Undocumented
Instance Variable _gyro_so Undocumented
def __enter__(self):

Undocumented

def __exit__(self, exception_type, exception_value, traceback):

Undocumented

def __init__(self, i2c, address=104, accel_fs=ACCEL_FS_SEL_2G, gyro_fs=GYRO_FS_SEL_250DPS, accel_sf=SF_M_S2, gyro_sf=SF_RAD_S, gyro_offset=(0, 0, 0)):

Undocumented

def calibrate(self, count=256, delay=0):

Undocumented

def get_orientation(self, threshold=osc.IMU_ROTATE_THRESHOLD):

Undocumented

def sleep_off(self):

Undocumented

def sleep_on(self):

Undocumented

address =

Undocumented

i2c =

Undocumented

@property
acceleration =

Acceleration measured by the sensor. By default will return a 3-tuple of X, Y, Z axis acceleration values in m/s^2 as floats. Will return values in g if constructor was provided `accel_sf=SF_M_S2` parameter.

@property
gyro =

X, Y, Z radians per second as floats.

@property
temperature =

Die temperature in celcius as a float.

@property
whoami =

Value of the whoami register.

def _accel_fs(self, value):

Undocumented

def _gyro_fs(self, value):

Undocumented

def _register_char(self, register, value=None, buf=bytearray(1)):

Undocumented

def _register_short(self, register, value=None, buf=bytearray(2)):

Undocumented

def _register_three_shorts(self, register, buf=bytearray(6)):

Undocumented

_accel_sf =

Undocumented

_accel_so =

Undocumented

_gyro_offset =

Undocumented

_gyro_sf =

Undocumented

_gyro_so =

Undocumented