cncjs / cncjs-pendant-ps3

Dual Shock / PS3 Bluetooth Remote Pendant for CNCjs
MIT License
22 stars 24 forks source link

Have to run as sudo, controller doesn't move the carriage #7

Open Tailslide opened 4 years ago

Tailslide commented 4 years ago

Even though I did the udevadm step, running the pendant doesn't recognize me pushing the PS3 button unless I run it as sudo.

After that, it responds with this then nothing else happens and I can't get it to jog the carriage. Am I missing something???

pi@lowrider:~ $ cncjs-pendant-ps3 -p "/dev/ttyUSB0"
Waiting for Pendant to connect... please press the PS button on the DS3 controller.
^Cpi@lowrider:~ $ sudo cncjs-pendant-ps3 -p "/dev/ttyUSB0"
Waiting for Pendant to connect... please press the PS button on the DS3 controller.
Pendant Connected
connection:change:Not Charging
battery:change:80%
connection:change:Rumbling
Connected to ws://localhost:8000?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IiIsIm5hbWUiOiJjbmNqcy1wZW5kYW50IiwiaWF0IjoxNTY4MDY0NDUxLCJleHAiOjE1NzA2NTY0NTF9.mdpCi6ob4xiHSqRXDJjMYeBnZVp2n1I8p4Ck_l164-A