chrippa / ds4drv

A Sony DualShock 4 userspace driver for Linux
MIT License
1.05k stars 213 forks source link

Fix imu report (linear acceleration and angular velocity) #168

Open naoki-mizuno opened 5 years ago

naoki-mizuno commented 5 years ago

I've noticed that the linear acceleration and angular velocity reported from the device is incorrect. I looked into this problem and found that the order of fields were incorrect. With this PR the linear acceleration and angular velocity become consistent.

The following axis orientation is used (since I couldn't find any specific convention used in the code):

X: points to the right Y: points up Z: points towards the person holding the device

If needed I can post plots that I used to confirm that the fix is indeed consistent with the axis orientation above.

The following websites were references: