PyComms icon indicating copy to clipboard operation
PyComms copied to clipboard

mpu6050 float division by zero

Open rami-dabain opened this issue 9 years ago • 2 comments

File "models/PyComms/mpu6050.py", line 1540, in dmpGetYawPitchRoll
    'roll' : atan(g['y'] / sqrt(g['x'] * g['x'] + g['z'] * g['z']))}
ZeroDivisionError: float division by zero

rami-dabain avatar Jul 03 '15 11:07 rami-dabain

Unless you setup the sensor wrong the normalization vector cannot be 0

cTn-dev avatar Jul 03 '15 11:07 cTn-dev

write8(self, reg, value):(pycomms.py) function giving exception that i2c 68 is not connected . but i2cdetect showing 68 is connected.

ajaymahicha avatar Feb 26 '16 17:02 ajaymahicha