-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unit of accelerometer and magnetometer and gyroscope #91
Comments
hi fe-mo. There is absolutely nothing wrong. In you plot of calibrated data the accelerometer axes are normalized based on the calibrated values so that z-axis is approximately 1 (pointing down). Y and x are close to zero. Your raw data plot is just that, its the data that is coming out of the imu in counts. Mike |
Sorry the unit of the accelerometer is g or mG and also the magnetometer it is micro tesla? and why the accelerometer is not -9.8 and it is 1 ? |
Normalization. When at rest it will be 1. To get g's multiply the calibrated values by 1g (9.81 meter/sec^2). Raw data is in counts and if you are using a MPU9250 for instance for a setting of 2g's the resolution for each tick is 2.0/32768.0 (the 32768 is the total range, you need to look at the register map or spec sheet). to get g's from the raw data multiply the accelerometer value by resolution (2/32768). |
Hi! I'm not a dev, just a user. The units of raw accelerometer and magnetometer data depend on the scaling set on the sensors. When normalizing the data, accelerometer is normalized to percieved gravity and magnetometer to the percieved magnetic field in a way that accel=1 represents 1g = 8.91m/s2 and magneto=1 is the local strength of the magnetic field, which varies greatly. (According to the Wikipedia, the intensity of the Earth's magnetic field ranges between approximately 25,000 and 65,000 nT.) Normalization has no way of knowing whether you are measuring on the Mars or the sensor has linearity errors. The raw data has a specific unit but is exposed to bias and linearity errors. The calibrated values are in the aforementioned relative units. |
HI, Thanks for your nice job, I've used your library for calibration but my question is that what is the unit of accelerometer , magnetometer and gyroscope because I was a bit confused a why after calibration the range of accelerometer changed too much ? Is after calibration you change the the unit from mg to g ? I attched the pdf of accelerometer< and his would happen for magnetomer and gyrsocope would you please explain it
thanks
accelerometercalibrated(1).pdf
accelerometerrawdata.pdf
The text was updated successfully, but these errors were encountered: