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
{{ message }}
Repository navigation
[Bug] Occasional bad byte in gyro value on Technic Hub #1026
When we become nonstationary, it is normally because the (raw) sensor values change beyond a threshold. For example, if I touch the hub with the configuration described below, I get an expected result such as:
# gyro xyz, accl xyz, 16 bit int
-2 11 3 39 3 4308 # Stationary value we compare to
-3 9 3 60 46 4189 # This exceeds the 100 threshold on Z, so nonstationary
But sometimes when it is sitting perfectly still, we see:
-2 5 3 41 0 4248
253 9 0 34 -16 4244 # <---- The 253 should be approximately -2
Could we be reading the frame while it is being updated?
Reproduce:
Run a program like this on the Technic hub while it sits flat on the table:
Activity
laurensvalk commentedon Apr 4, 2023
I think I have identified the issue.
When we become nonstationary, it is normally because the (raw) sensor values change beyond a threshold. For example, if I touch the hub with the configuration described below, I get an expected result such as:
But sometimes when it is sitting perfectly still, we see:
Could we be reading the frame while it is being updated?
Reproduce:
Run a program like this on the Technic hub while it sits flat on the table:
Run a modified firmware to add a debug print when the hub first becomes non stationary:
laurensvalk commentedon Apr 4, 2023
Reverting pybricks/pybricks-micropython@121c4db seems to fix it.
The data sheet does recommend to keep this on.
Is there a downside to keeping this on? Could we occasionally miss an update this way?
pbio/drv/imu_lsm6ds3tr_c_stm32: Revert dropping block update.
pbio/drv/imu_lsm6ds3tr_c_stm32: Revert dropping block update.