Comments (6)
The claibration is explained quite well here: https://appelsiini.net/2018/calibrate-magnetometer/
from qmc5883lcompass.
Thank you for your reply. I have read the article but it doesn't answer my question. Let me illustrate:
Let max(x) = min(x) + 10, ditto for the other axes. This then gives:
offset_x = (min(x) + 10 + min(x)) / 2 = min(x) + 5
If we let sensor_x = min(x) + 2 we therefore get
corrected_x = min(x) + 2 - (min(x) + 5)) = -3.
Continuing,
avg_delta_x = (min(x) + 10 - min(x)) / 2 = 5
and, according the above assumption that the other axes are the same, we get
avg_delta = avg_delta_x
and
scale_x = 1
hence
corrected_x = (min(x) + 2 - (min(x) + 5)) * 1 = -3
What am I missing?
Kevin
from qmc5883lcompass.
You did a lot of math now, but you did not describe your problem/what confuses you. Why don‘t you like the values the calibration gives you? If sensor only provides you data in a range out of 10 values, then yes the nirmalized data will be between -5 and 5
from qmc5883lcompass.
My problem is that corrected_x is a constant, -3 in my example.
If min(x) = 100, the corrected_x = -3. If min(x) = 200, then corrected_x = -3.
from qmc5883lcompass.
That‘s why you normalize data. It‘s moving the the same relative values to a specific absolute value. Maybe take a closer look at the plots in original artical and look how the point clouds get moved around
from qmc5883lcompass.
OK, I'm beginning to understand. I'll take a closer look at those graphs. I was expecting the corrected number to be approximately equal to the raw number. WRONG! :(
from qmc5883lcompass.
Related Issues (11)
- QMC5883 library to Attiny85 HOT 1
- mgPerDigit HOT 1
- The bearing is wrong when held upside down HOT 1
- How to detect a car around the sensor HOT 3
- Filtering the Influence of Surrounding Objects HOT 3
- GetAzimuth does not change with, and can not get my magnetic heading. HOT 1
- Wemos D1 Mini usage HOT 3
- Problems with MKR WAN 1310
- In which unit are the x, y, z values? HOT 1
- solving hangup of the sensor (in continuous mode) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qmc5883lcompass.