Lines Matching +full:usb +full:- +full:bias
2 # SPDX-License-Identifier: GPL-2.0
3 # -*- coding: utf-8 -*-
43 for x in range(-32000, 32000, 4000):
51 # to inverse calibration, followed by calibration by hid-sony.
52 assert x - 1 <= value <= x + 1
54 for y in range(-32000, 32000, 4000):
61 assert y - 1 <= value <= y + 1
63 for z in range(-32000, 32000, 4000):
70 assert z - 1 <= value <= z + 1
76 for rx in range(-2000000, 2000000, 200000):
83 # Sensor internal value is 16-bit, but calibrated is 22-bit, so
84 # 6-bit (64) difference, so allow a range of +/- 64.
85 assert rx - 64 <= value <= rx + 64
87 for ry in range(-2000000, 2000000, 200000):
94 assert ry - 64 <= value <= ry + 64
96 for rz in range(-2000000, 2000000, 200000):
103 assert rz - 64 <= value <= rz + 64
158 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
181 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
205 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
215 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
216 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
241 idx = int(k[-1]) - 1
255 # can be retrieved using a feature report (0x2 USB / 0x5 BT).
257 # DS4s matching the feature reports of PS4ControllerBluetooth/USB
258 # as dumped from hid-sony 'ds4_get_calibration_data'.
261 # so we can have tests passing even if hid-tools doesn't have the
264 "x": {"bias": -73, "numer": 16384, "denom": 16472},
265 "y": {"bias": -352, "numer": 16384, "denom": 16344},
266 "z": {"bias": 81, "numer": 16384, "denom": 16319},
269 "x": {"bias": 0, "numer": 1105920, "denom": 17827},
270 "y": {"bias": 0, "numer": 1105920, "denom": 17777},
271 "z": {"bias": 0, "numer": 1105920, "denom": 17748},
301 # DualSene matching the feature reports of PS5ControllerBluetooth/USB
302 # as dumped from hid-playstation 'dualsense_get_calibration_data'.
305 # so we can have tests passing even if hid-tools doesn't have the
308 "x": {"bias": 0, "numer": 16384, "denom": 16374},
309 "y": {"bias": -114, "numer": 16384, "denom": 16362},
310 "z": {"bias": 2, "numer": 16384, "denom": 16395},
313 "x": {"bias": 0, "numer": 1105920, "denom": 17727},
314 "y": {"bias": 0, "numer": 1105920, "denom": 17728},
315 "z": {"bias": 0, "numer": 1105920, "denom": 17769},