So for a project I need the change in position from the MPU-6050.
The only code i was abet to find for the MPU was spitting out position.
So I took it upon my self to wrote some code to subtract the last taken sample and subtract it from the current one. But instead of giving me change in position it just spits out 0's.
Can some one look over this code and suggest something.
So I Wrote the last part can you guys see what I did wrong.
Angular_velocity.ino (13.3 KB)