gobot icon indicating copy to clipboard operation
gobot copied to clipboard

DualShock4 mappings aren't correct for my controller

Open vaskoz opened this issue 7 years ago • 4 comments

DualShock4 controller Model: CUH-ZCT2U

More device information:

Product ID:	0x09cc
Vendor ID:	0x054c  (Sony Corporation)

I will open a PR to fix this for my controller.

vaskoz avatar Sep 16 '18 18:09 vaskoz

I suggest that you check your kernel version to make sure is 4.14+ on Linux, and alternatively if on OSX try using the "older" mapping that is in the config/dualshock4.json directory.

deadprogram avatar Sep 16 '18 18:09 deadprogram

Thx @deadprogram ! I'm on OSX and the mapping in config/dualshock4.json doesn't appear to be correct for my model either. I used platforms/joystick/bin/scanner.go to get the correct mapping for my DualShock4 model. After the changes in my PR, I can fly my drone as expected using https://github.com/hybridgroup/gophercon-2018/blob/master/drone/tello/step6/main.go In addition to my PR #622 , the only local change needed was https://github.com/hybridgroup/gophercon-2018/blob/master/drone/tello/step6/main.go#L36 to read configLocation = "dualshock4"

vaskoz avatar Sep 16 '18 18:09 vaskoz

I only have a single model of the DualShock4 controller, but it appears they have at least 4 different models. 3 listed on this wiki page and the model that I own. If this is a model variation issue then perhaps we could breakout the dualshock4 into different variations like dualshock4-t1u.

vaskoz avatar Sep 16 '18 18:09 vaskoz

@vaskoz @deadprogram I think that the correct resolution here is to break out the mappings into separate files. Do we have any idea which model we're supporting in the existing mapping?

trevrosen avatar Nov 30 '18 22:11 trevrosen