PyComms
PyComms copied to clipboard
mpu6050 float division by zero
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
Unless you setup the sensor wrong the normalization vector cannot be 0
write8(self, reg, value):(pycomms.py) function giving exception that i2c 68 is not connected . but i2cdetect showing 68 is connected.