开发者

Accelerometer, Gravity and Linear Acceleration Query

开发者 https://www.devze.com 2023-04-11 04:12 出处:网络
I was reading through the sensor event documentation on the开发者_开发百科 android developer site. I am unclear as to whether or not the gravity and linear acceleration sensors are separate from the a

I was reading through the sensor event documentation on the开发者_开发百科 android developer site. I am unclear as to whether or not the gravity and linear acceleration sensors are separate from the accelerometer. In other words, can the accelerometer measure gravity and linear acceleration?


The accelerometer, gravity and linear acceleration sensors all use the same accelerometer, yes, they just output different values based on what they are conveying to the user.

I'd provide source-code proof but it looks like the android git repository browser is down for now.

0

精彩评论

暂无评论...
验证码 换一张
取 消