hideakitai / MPU9250

Arduino library for MPU9250 Nine-Axis (Gyro + Accelerometer + Compass) MEMS MotionTracking™ Device
MIT License
279 stars 92 forks source link

Opposite direction orientation #67

Closed roboticsai closed 3 years ago

roboticsai commented 3 years ago

When i run the code provided in the README and test it, the orientation is comming opposite i.e i rotate the imu 90 degree clockwise the z axis rotation data is comming just opposite.

hideakitai commented 3 years ago

@roboticsai Hi, which coordinate do you use? Please let me know detailed information. README saids,

The coordinate of quaternion and roll/pitch/yaw angles are basedd on airplane coordinate (Right-Handed, X-forward, Z-down). On the other hand, the coordinate of euler angle is based on the axes of acceleration and gyro sensors (Right-Handed, X-forward, Z-up).Please use getEulerX/Y/Z() for euler angles and getRoll/Pitch/Yaw() for airplane coordinate angles.

hideakitai commented 3 years ago

@roboticsai I think it's a problem about coordinate/placement as mentioned above. I'm closing this issue, but please feel free to reopen it if you still have a problem.