I am new to WP7 development and working on a project (wp7 app) where I need to get ONLY gravity force using accleration API (I think I can do some thing using Motion Api) but It requires window phone to support Compass and Gyroscope as well.So Is there any way to separate gravity from accleration or only get gravity forces on X, Y and Z axis using only accelration (as I want my app to run on wp devices where there is no Compass and Gyroscope).
Also in android there are some methods likes
- Linear Acceleration
- Low pass / high pass filters etc
Do we have such kind of support in Wp7?
Thanks
The phone itself doesn’t know what force is caused by acceleration and what by gravity. You would need information from other sensors to be able to do the math to separate the values. That’s what Motion API is for.
So, your only chance is to use Motion API. It will fall gracefully if the device doesn’t have the necessary sensors, but will work if there are: