Actually, I am getting the IMU data properly. It provides me the accelerometer's output in [g] and I need it in [m/s^2](meter per squared second). How can I convert the IMU output in [g] to [m/s^2]?
Very Best Regards,
I just remembered that we had done this before. This FAQ may be more helpful. It was written for another set of products but the information is exactly the same.
1g = 9.8 m/s^2.
It is just an approximate. How can I get the exact magnitude of the gravity? There should be a function to calculate the reference gravity (static) and then IMU refers to it as 1g.
How precise do you need it? The specified accuracy of the sensor is +/-1%. The units are calibrated against gravity in Greensboro, NC. If you search on Wikipedia, against "gravity of earth," there is a good write up on this, which includes a formula for "g" that accounts for longitude and latitude. If you have any trouble with this, please let me know. I am a bit limited in my search at the moment (on my phone). I hope that helps!
Here is the link to the Latitude Mode for Earth's Gravity:
Here is a link to the longitude, latitude and altitude at the airport in Greensboro, NC (close to calibration location).
When the IMU provides the gravity as 1g, there are two possible scenarios: it calculates the average of the measurements in a time span and considers it as the gravity, or it considers the gravity as a constant.
Please let me know which one is the case and if the second case stands, please provide the value of the constant.
It assumes that gravity is constant.
I hope that you don't mind but our administrators are asking us to branch new questions into new discussions, for easier search service in the future.
Just to elaborate a bit more on this. During the factory calibration, gravity is the stimulus for the accelerometer calibration process, which uses a process similar to the one in this article.
Hope that helps.
Retrieving data ...