Gampad in EMC2 Question (SOLVED)
- Rick G
-
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 155
EMC2 is quite good at telling you why it won't start. I very much suspect that there is a pin-name that you have wrong, probably because the button names are different on your device.
Andy has a good point there and the most likely reason.
Or you could have misspelled the pin name, you should get an error that say nnnnn does not exist when EMC tries to start.
Again go back to show hal configuration watch, select your device and you should be able to see and test all the buttons you have to work with.
Substitute the name of the pin you have and want to use in the configuration file and try that.
As Chris also pointed out you can use Pncconf to see and test all the pins/buttons you have.
Chris,
I did try Pncconf today and it was able to locate and name the joystick and then show and test the buttons....pretty cool!
Rick G
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7805
- Thank you received: 2086
I wrote it when I discovered how much fooling around with general rules, specific rules and permissions one had to get just right.
In PNCconf now you don't have to completely know everything.
Please Log in or Create an account to join the conversation.
- cwebs
- Offline
- Premium Member
-
- Posts: 80
- Thank you received: 2
Please Log in or Create an account to join the conversation.
- Rick G
-
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 155
wiki.linuxcnc.org/emcinfo.pl?Pncconf
You could use it to create a new configuration, but in your case you might just start it and use it to test the buttons and see a list of the names of the buttons and not even save it.
But Pncconf is Chris's work and he can give you better advice.
Rick G
Please Log in or Create an account to join the conversation.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1173
Is there a manual for pncconf ? I don't want to lose what I have got right so far. Carl
The manual for pncconf is here
linuxcnc.org/docview/2.5/html/config/pncconf.html
John
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7805
- Thank you received: 2086
So unless you are using Mesa products it can't make a config for you.
Though you could make a dummy one up and look at the HAL file to see how PNCconf did it.
Though PNCconf sometimes does things a little differently then hand written configs.
But if you want to just add a rule for another USB joystick and test it to see the pin names
then PNCconf can be helpful.
PNCconf can also be used to test parports...
But if you got your joystick working you should probably just carry on and learn a little HAL along the way.

Please Log in or Create an account to join the conversation.
- cwebs
- Offline
- Premium Member
-
- Posts: 80
- Thank you received: 2
Please Log in or Create an account to join the conversation.
- Rick G
-
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 155
Rick G
Please Log in or Create an account to join the conversation.