How to calibrate accelerometer?

I would like to know if anyone can post an example of how to calibrate the accelerometer to support different user positions in landscape mode. More or less, I need to know how to calculate and apply the offset after taking the initial readings. I have tried a few tutorials for other languages but haven't been able to figure out the correct way using LUA.

Thanks,

Andre

I would like to know this as well!
Basically, reset the accelerometer right before game start like in games that use tilt control.

Can anyone from Ansca chime in and let us know whether this is possible or not?
Thanks.

Ohhh, I would love to know. I want to be able to make it so that the acceleration is at 0 when the phone is tilted at a 90 degree angle towards you. That would be awesome if you could calibrate it :)

Regards,
Jordan Schuetz
Ninja Pig Studios

views:1705 update:2011/9/26 8:07:09
corona forums © 2003-2011