Closed zcfan closed 6 years ago
Yep! you are correct please make the PR and I will merge. Thanks! D.
@dorukeker Actually I found that gravityNormalized option can't be set by user at all, it's always true. Will make a PR later 😂
Thanks! I merged the PRs
I found iOS and Android acceleration value has different sign, and it seems gravityNormalized option only correct accelerationWithGravity(gm.gx/gm.gy/gm.gz) but not acceleration(gm.x/gm.y/gm.z).
I made a plot for this situation to clarify my idea:
Those two green box shows that the
gm.y
andgm.z
in iOS and Android are negative to each other.Change line 350 - 355 to following could give consistent value, but I'm not sure I understand this library completely. I would like to make this a PR if you this's a correct fix.