I am developing an app for the Samsung Galaxy S4. I am trying to use the LINEAR_ACCELERATION sensor which uses sensor fusion with the accelerometer and gyroscope to subtract gravity so you can get a clean value for acceleration. It works pretty well, but I noticed that for whichever axis is pointed downward, a value of about 0.5 m/s/s is shown constantly. I also notice that when I use the ACCELEROMETER sensor, the gravity reading is about 9.2-9.3 m/s/s.
Is there some way that I can adjust the gravity constant that the LINEAR_ACCELERATION sensor uses, or a way to calibrate the accelerometer itself to display the true value for gravity?
Thanks to anyone who helps, I really need it.