Search the Community
Showing results for tags 'degree'.
Found 1 result
Hello, I am using the digilent CMPS2 module which uses the Memsic MMC34160PJ magnetometer. In the datasheet of chip CMPS2 there is a formula with actan(x/y)*180/pi. Is it right to use for x and y only the LSB (8 bits) multiplied with the number 0,48.... as shown in the datasheet in point 1? It‘s clear that I only get values between 0 and 90 degrees because the sensor delivers only unsigned values. When I use atan2 I get values between 0 and 180 degrees. I know it would be easier if I had signed data. But unfortunately the sensor delivers only unsigned values. How is such a conversion form of unsigned magnometer data 0 to 360 degrees possible?