We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5359 - [patch] Incorrect sensor data from DualShock4
Summary: [patch] Incorrect sensor data from DualShock4
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: 2.0.13
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-19 09:33 UTC by Mathieu Eyraud
Modified: 2020-11-24 05:20 UTC (History)
0 users

See Also:


Attachments
multiply gyro values by sensitivity (478 bytes, patch)
2020-11-19 09:33 UTC, Mathieu Eyraud
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Eyraud 2020-11-19 09:33:07 UTC
Created attachment 4527 [details]
multiply gyro values by sensitivity

When the hardware calibration fails, values read from sensors need to be multiplied by default sensitivity (16 for gyro, 1 for accelerometer).
Comment 1 Sam Lantinga 2020-11-24 05:20:34 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/43769c91b10b