I am planning on using an MPU6050 on a robotic leg to get position information.
Your code is by far the simplest and easy to use that I have found for the MPU. However there are some issues I am having a few issues with outputs of the angle values.
When using the GetAngle example the X angle begins to reset back to zero after each movement.
Rotation around the X axis causes the Z angle to change.
Rotation around the X and Z axis cause the Y axis to change.
This issue does not occur in the GetAllData example however the angleX value here does not seem to respond to changes in the X axis but instead changes with the Z axis.
I am not very advanced in my coding capabilities and don't really have any suggestions to fix this.
I am planning on using an MPU6050 on a robotic leg to get position information. Your code is by far the simplest and easy to use that I have found for the MPU. However there are some issues I am having a few issues with outputs of the angle values.
This issue does not occur in the GetAllData example however the angleX value here does not seem to respond to changes in the X axis but instead changes with the Z axis. I am not very advanced in my coding capabilities and don't really have any suggestions to fix this.