You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I noticed that GYRO_OFFSET_EN, GYR_OFFSET_X_MSB_LEN, GYR_OFFSET_X_MSB_BIT ... are not in the definitions file. the same for gyro y and z. So it generates an error when you call the functions to get the offsets.
Mohamed
The text was updated successfully, but these errors were encountered:
momo2555
changed the title
Some registers are not in definitiions file.
Some registers are not in the definitiions file.
Feb 24, 2022
File "/home/gamer/gyro-test.py", line 48, in capture_events
print(device.get_gyro_rate(), device.get_accel_rate())
File "/home/gamer/.local/lib/python3.10/site-packages/BMI160_i2c/__init__.py", line 136, in get_accel_rate
return self._reg_read_bits(registers.ACCEL_CONF, definitions.ACCEL_RATE_SEL_BIT, definitions.ACCEL_RATE_SEL_LEN)
AttributeError: module 'BMI160_i2c.definitions' has no attribute 'ACCEL_RATE_SEL_BIT'. Did you mean: 'ACCEL_RANGE_SEL_BIT'?
Hi,
I noticed that GYRO_OFFSET_EN, GYR_OFFSET_X_MSB_LEN, GYR_OFFSET_X_MSB_BIT ... are not in the definitions file. the same for gyro y and z. So it generates an error when you call the functions to get the offsets.
Mohamed
The text was updated successfully, but these errors were encountered: