There is something fishy with the C demo code for the dIMU sensor.
When I run it, it seems to randomly pause the execution for nearly a second. My first idea was that pi has problems with the X system overhead for the text display. The problem gets far more obvious if you comment out the sleep command at the end of the loop. But on my fresh minibrick system without X I see the same behaviour…
Next i tried the python dIMU example: no problem whatsoever, all running smooth and fast, no stops, no nothing, even if i drop the sleep command at the end.
When I stop the python demo program with <ctrl>-C I can run it again and again. But the C demo wouldn’t start, it only sets up the sensor and finishes. Unplugging the sensor does not help, I have to reboot to get the C program back to work. I can <ctrl>-C the C program and start it again, no problem, but I can’t run it after the phython program.
Both programs get more or less the same results. I assume the reading is ok, als long as it works.
Regards,
Michael