2018-07-02 03:44 AM
Hello, erveryone
I have a question about raw data correctness. I read raw data from magnetometer. I reached following results after rotated this around Z axis in horizontal, flat plane, data are expressed in gauss:
Red - X data, Green - Y data, Blue - ellipse.
I know that this data set isn't correct. I see that parts of data set are flipped. When I converted it (moved parts of sine and cosine), I reached following results:
It looks more correctly than previous chart. What is the reason of data distortion from first picture? I used
to collecting data from sensor. I assumed that this library is correct.#magnetometer #lsm303agr #raw-data #distortions2018-07-09 01:26 AM
I think the conversion from raw data into gauss unit is not correct. Not only the overflow but also the absolute size is not correct. The size of Earth magnetic field is hundreds of milli gauss (not tens of gauss).
2018-07-09 06:15 AM
Hello Miroslav
Yes, you are right. Correct data are expressed in mili gauss (necessary during yaw counting). I checked these distortions. They were caused by metal material, which was near (used to magnetometer's board handling). When I removed it, distortions disappeared. Before calibration, it looks like this:
and after calibration:
black - yaw ( expresed in radians)
blue - z data
red - x data
green - y data
It looks good for me. What is your opinion?
2018-07-09 09:59 AM
Usually we plot the magnetometer data in scatter plot (X-Y, X-Z, Y-Z) and the data should created circles with center in [0,0] when the sensor is rotated along third axis.
But from what I see on your picture it seems OK to me.