niru-5 / imusensor

Python library for communication between raspberry pi and MPU9250 imu
MIT License
103 stars 32 forks source link

About the default orientation #17

Open domonless opened 3 years ago

domonless commented 3 years ago

Thanks for the great work.

I am a newbie with IMUs.

when I run the Basic Usage code, I get Orientation output like:

roll: 178.8470066832591 ; pitch : 0.10481996839275354 ; yaw : 123.34091836135526

My MPU9250 board is placed horizontally on the desktop, my question is, how do I reset these values to zeros at the beginning or these values are based on the world coordinate system which will change only when the direction of the board changes ?

Thanks.

niru-5 commented 2 years ago

Hi,

I don't think I have included the functionality of resetting to zeros at an initial position. However, I do see that this could be useful in some applications. I will try to put this in the later version of the package.

Thanks, Niru