Closed Huafeng-XU closed 3 years ago
Hi @Huafeng-XU I'll review this and get back to you shortly. Thanks.
Thank you @ROBOTIS-Will
I want to get a OpenCR IMU data from a function whenever i call that function. I will prefer the IMU data function will not affect by the delay() function. Thank you so much again.
@Huafeng-XU When using a blocking function such as delay(), it affects the processing time used for the Madgwick filter in the computeIMU function. If you need to read the IMU sensor value, it is recommended to use an interrupt with a callback so that IMU update is not affected by blocking. Thank you.
Ok, I got it. Thank you for let me know the details.
Hello, I use the OpenCR IMU Example _IMU_ReadRollPitchYaw in Arduino IDE. But When i add the delay(2000) function in the code, the IMU data become error and the ACC Cali doesn't work. Can anyone tell me how the address this problem and tell me why? Thank you.
83 0.95 -4.97 -11.87 83 -3.75 17.50 -12.39 ACC Cali Start ACC Cali End 83 -5.48 17.15 -12.63 84 1.61 -4.71 -11.84 83 -5.71 17.06 -12.65 83 1.26 -4.84 -11.89 84 -4.71 17.32 -12.55
The code is below:
@theseankelly @ROBOTIS-Will Son @robotpilot