Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange IMU time stamp #24

Open
Anas-Alhashimi opened this issue Feb 20, 2015 · 1 comment
Open

Strange IMU time stamp #24

Anas-Alhashimi opened this issue Feb 20, 2015 · 1 comment

Comments

@Anas-Alhashimi
Copy link

Hello,
This request is based on the discussion here :http://answers.ros.org/question/203408/strange-imu-stamp-time/?answer=203412#post-id-203412.

In short the driver is publishing incorrect time stamp! I used mobile Sony Z2.
Martin sugested this
Regarding the wrong timestamp: Since your timestamp is almost exactly twice the actual value, I suspect that ImuPublisher.java#L173-L175 are responsible. The code assumes that event.timestamp is in nanoseconds of uptime, but some devices (e.g., the Nexus 4) instead put the exact timestamp (since 1970-01-01) in there.

Regards
Anas

@chadrockey
Copy link
Member

Looks like this wasn't specified very clearly in the Android docs (and must be inconsistent across devices).

http://developer.android.com/reference/android/hardware/SensorEvent.html

I'll merge a pull request that detects this and does the right thing for each case, but I don't have time to work on this on my own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants