QAccelerometer reports wrong timestamp information

Bug #1388652 reported by Lorn Potter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtubuntu-sensors
New
Undecided
Unassigned

Bug Description

The timestamp used in QtSensors is different than what is being reported.

Using a simple show_accelerometer example command:

phablet@ubuntu-phablet:~/sensors-examples$ show_acceleration/show_acceleration
 (main:134) - choosing "core.accelerometer"
Acceleration: -1.6 x 6.3 y 7.5 z m/s^21414974054854068592 (-235370 ms since last, -0.0 Hz)
Acceleration: -1.6 x 6.3 y 7.5 z m/s^21414974054859103992 (5035 ms since last, 0.2 Hz)
Acceleration: -1.6 x 6.3 y 7.5 z m/s^21414974054864139393 (5035 ms since last, 0.2 Hz)
Acceleration: -1.5 x 6.4 y 7.4 z m/s^21414974054869174793 (5035 ms since last, 0.2 Hz)
Acceleration: -1.6 x 6.4 y 7.4 z m/s^21414974054874210193 (5035 ms since last, 0.2 Hz)

It should be more like this:

Acceleration: 0.2 x 0.4 y 9.8 z m/s^2195476924274 ( 21 ms since last, 47.1 Hz)
Acceleration: 0.3 x 0.4 y 9.8 z m/s^2195476946157 ( 21 ms since last, 45.7 Hz)
Acceleration: 0.2 x 0.4 y 9.8 z m/s^2195476966758 ( 20 ms since last, 48.5 Hz)
Acceleration: 0.3 x 0.3 y 9.8 z m/s^2195476989252 ( 22 ms since last, 44.5 Hz)

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.