quat2eul is giving me a strange result
7 次查看(过去 30 天)
显示 更早的评论
Hello All,
I am using the quat2eul function to convert quaternions to euler Angles, However, after i do that i get a strange result. It appears that whenever ever my angle gets greater than pi it switches to a negative angel. Does anyone know how to fix this? i have attached a photo so you can see what I'm talking about.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/569004/image.png)
2 个评论
James Tursa
2021-4-2
编辑:James Tursa
2021-4-2
Please post a small subset of your quaternion data that encompasses one of these pos/neg switches, and also the code you are using for the conversion. Maybe all you have to do is add 2*pi to all results that are less than -pi to get things how you want.
采纳的回答
James Tursa
2021-4-2
Maybe all you have to do is add 2*pi to all results that are less than -pi to get things how you want.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calendar 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!