xioTechnologies / Fusion

MIT License
913 stars 230 forks source link

yaw value changes while rotating on only roll or pitch axis. #161

Closed YunHB closed 3 weeks ago

YunHB commented 2 months ago

Hi. Thank you for your algorithm and kind answers on other issues.

I have some problem on yaw value, especially for 2 phenomenon.

First, yaw value moves when I DON"T rotate on yaw axis. I simply rotated my imu on roll or pitch axis, yaw value changed.

Second, when I rotate on yaw axis, yaw values are not changing as uniform degree. When the rotation plane is divided into four quadrants, it changes like 80, 80, 80, 120 degree on each quadrant.

I'm implementing experiences changing SAMPLE_RATE, gyroscopeRange, recoveryTriggerPeriod, etc.

Do you have any suggestions on why this is happening?

I'll attach some plots if they would help.

xioTechnologies commented 2 months ago

I cannot offer any suggestions when you provide so little information. I suggest you rewrite your post so that others may be able to help. You would need to provide a description of your setup and clearly explain what is not working. This is usually best expressed as a description of what you expect to happen juxtaposed with what is actually happening. In this case, I expect annotated graphs would be useful.

YunHB commented 2 months ago

image This is ahrs setting for my code, and 스크린샷 2024-04-26 094256 this is graph with Blue - roll, Red - pitch, green - yaw. Sample index 100~600 : IMU only rotated on roll direction. Sample index 600~1000 : IMU only rotated on yaw direction. Sample index 1080~1400 : IMU only rotated on pitch direction.

xioTechnologies commented 2 months ago

Your posts are not written in a way that could allow others to help. I am unable to support you.