topic How to output Euler angle by BSXLite? in MEMS sensors forum
https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/How-to-output-Euler-angle-by-BSXLite/m-p/10342#M1788
<P>Dear All</P><P>BSX Lite is very handy because it can outputs Quaternion. Although Euler angle is much less accurate than a Quaternion, and there is a problem with the <SPAN>Gimbal lock</SPAN>, there are still many Apps in reality who want to read the Euler angle directly. Of course, I also know that the BNO050 may be able to export Euler directly, but it lacks other features.<BR />I wonder who has tried to convert the Quaternion into Euler angle, or even calculate the Euler angle directly with 9DOF? Can someone share the code?<BR />The conversion of the Quaternion into the Attitude angle (absolute Euler angle) needs to solve a matrix, then, the solution of the Attitude angle should attach a credible range of value (<SPAN>Gimbal lock</SPAN> problem)?</P><P>I am using BSX Lite at BMX160, C# program.</P><P>Thanks!</P><P>Andy</P>Tue, 05 Nov 2019 14:46:04 GMTcoder2019-11-05T14:46:04ZHow to output Euler angle by BSXLite?
https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/How-to-output-Euler-angle-by-BSXLite/m-p/10342#M1788
<P>Dear All</P><P>BSX Lite is very handy because it can outputs Quaternion. Although Euler angle is much less accurate than a Quaternion, and there is a problem with the <SPAN>Gimbal lock</SPAN>, there are still many Apps in reality who want to read the Euler angle directly. Of course, I also know that the BNO050 may be able to export Euler directly, but it lacks other features.<BR />I wonder who has tried to convert the Quaternion into Euler angle, or even calculate the Euler angle directly with 9DOF? Can someone share the code?<BR />The conversion of the Quaternion into the Attitude angle (absolute Euler angle) needs to solve a matrix, then, the solution of the Attitude angle should attach a credible range of value (<SPAN>Gimbal lock</SPAN> problem)?</P><P>I am using BSX Lite at BMX160, C# program.</P><P>Thanks!</P><P>Andy</P>Tue, 05 Nov 2019 14:46:04 GMThttps://community.bosch-sensortec.com/t5/MEMS-sensors-forum/How-to-output-Euler-angle-by-BSXLite/m-p/10342#M1788coder2019-11-05T14:46:04ZRe: How to output Euler angle by BSXLite?
https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/How-to-output-Euler-angle-by-BSXLite/m-p/10369#M1800
Hi Andy,<BR /><BR />You should call the bsx_get_orientdata_euler_rad function for Euler Angles directly from BSX.<BR /><BR />If you are using floating point, then the gimbal lock becomes less of an issue.<BR /><BR />o_oWed, 06 Nov 2019 15:01:56 GMThttps://community.bosch-sensortec.com/t5/MEMS-sensors-forum/How-to-output-Euler-angle-by-BSXLite/m-p/10369#M1800o_o2019-11-06T15:01:56ZRe: How to output Euler angle by BSXLite?
https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/How-to-output-Euler-angle-by-BSXLite/m-p/10415#M1813
<P>Hi </P><P>Yes, I tried calling <SPAN>the <STRONG>bsx_get_orientdata_euler_rad</STRONG>,</SPAN> but the output data doesn't change, seems it jammed. The code is so simple, what exactly did I do wrong?<SPAN> please see follows code. </SPAN>Andy</P>Sat, 09 Nov 2019 07:40:50 GMThttps://community.bosch-sensortec.com/t5/MEMS-sensors-forum/How-to-output-Euler-angle-by-BSXLite/m-p/10415#M1813coder2019-11-09T07:40:50ZRe: How to output Euler angle by BSXLite?
https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/How-to-output-Euler-angle-by-BSXLite/m-p/10464#M1838
<P>I don't know why diagrams can't be attach, now try post again.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="problem 1.jpg" style="width: 684px;"><img src="https://community.bosch-sensortec.com/t5/image/serverpage/image-id/3521iE0B9B50030AD2B00/image-size/large?v=v2&px=999" role="button" title="problem 1.jpg" alt="problem 1.jpg" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="problem 2.jpg" style="width: 624px;"><img src="https://community.bosch-sensortec.com/t5/image/serverpage/image-id/3522i0810F223A2F6AB00/image-size/large?v=v2&px=999" role="button" title="problem 2.jpg" alt="problem 2.jpg" /></span></P>Thu, 14 Nov 2019 00:42:05 GMThttps://community.bosch-sensortec.com/t5/MEMS-sensors-forum/How-to-output-Euler-angle-by-BSXLite/m-p/10464#M1838coder2019-11-14T00:42:05ZRe: How to output Euler angle by BSXLite?
https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/How-to-output-Euler-angle-by-BSXLite/m-p/10622#M1936
<P>Hello <SPAN>o_o</SPAN></P><P>In my program, floating-point operations are used for eulerbe processing. I use BSX Lite to output Quaternion is right, get the correct reading, but when I output Euler angle in the same way, I get only zero, no change. Can you tell me what caused it? Thanks!<BR />I'm using the C#, Cortex M4 core. please see the code as follow</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="compare.jpg" style="width: 781px;"><img src="https://community.bosch-sensortec.com/t5/image/serverpage/image-id/3551i2059D097C5AB5E59/image-size/large?v=v2&px=999" role="button" title="compare.jpg" alt="compare.jpg" /></span></P>Wed, 27 Nov 2019 14:14:44 GMThttps://community.bosch-sensortec.com/t5/MEMS-sensors-forum/How-to-output-Euler-angle-by-BSXLite/m-p/10622#M1936coder2019-11-27T14:14:44Z