Open martindb opened 6 years ago
Attach the modified index.js
(you might post as a gist ( https://gist.github.com ) )
This seems a bit odd. At first glance it should fail to run with how its posted.
This is a clone dualshock 3 controller, so things might operate very differently.
Here it is. https://gist.github.com/martindb/aab2d7c4dc52112ca7c5f4e3e0d785b4 I known you have programmed this pendant using an original sony controller, but also I want to share with others with same problem, they can use the patched bluez suporting shamwan chip, and commenting the setExtras invocation.
I'm trying to use a clone dualshock 3 controller (Shanwan controller) in my fresh installed rapsbian / rpi 3.
First, I have problems with pairing/using the controller with BT, so, I'm finally using a patched bluez version to get it work (see https://raspberryblog.de/?p=1870).
With this issue solved, I have problems with cncjs-pendant-ps3, exactly in the setExtras invocation, some seconds after starting, I got this error (it sets the leds according to battery level right):
Then, if I just comment the setExtras invocation, I can get the pendant working great, but no battery leds or rumble feedback:
If I make a simple nodejs code calling the setExtras function, I can control the leds and rumbling without problems.
Any idea?