quat2eul is giving me a strange result
조회 수: 13 (최근 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.
댓글 수: 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!