GAMEPAD problem
- GM2012
- Offline
- New Member
-
- Posts: 18
- Thank you received: 0
PNCConf - is this available for 8.04? Couldn't find how to install.
hidcomp is ubuntu 10 -
Reluctant yet to upgrade to 10 -
Please Log in or Create an account to join the conversation.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
John
Please Log in or Create an account to join the conversation.
- GM2012
- Offline
- New Member
-
- Posts: 18
- Thank you received: 0
Now I know I DO have output from gamepad (Logitech F310) since I can see it in
jstest
Again, having DEVICE MANAGER helps a lot since I can see gamepad there.
This time, device is shown as
Generix X-Box pad
and under properties I can see:
linux.device_file /dev/input/event5
Not 100% sure yet, but it made the difference at what USB connector I've connected gamepad. Again, not 100% sure that it matter.
Normally under windows, mode button, when pushed, would lit GREEN. This mode button is to swap hat and left joystick.
On other two PC (old ones) this LED would not always lit depending where I stick gampepad. Do not believe it has to do anything with power
consumption.
Now I got answer to my question how to install "Pncconf" - it comes with Live CD.
Now I am trying to add rule in udevs ...
Thanks again to all.
Once I finish, I'll try to submit for other Logitech users.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23328
- Thank you received: 4949
I don't think joydev is part of the solution.
The instructions in wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_Remote_Pendant ought to work. It sounds like you have an identical joypad to the example!
To test with the simplest possible system, open a terminal and type
halrun
You will then get a halcmd prompt, and type
halcmd> loadusr -W hal_input -KRAL Dual
Then
halcmd> show pin
If you get a nice list of joypad pins, then all is well, and you can use those pins in the HAL file, as described, to perform specific LinuxCNC actions.
If you get an error after the loadusr line, or there are no pins, then you probably need to setup the plugdev rules, though as is is showing up in /proc/bus/devices this is unlikely to be a problem in your case.
My impression is that you haven't got as far as trying to add the joystick to your HAL config yet, and are expecting it to work as a jog device as if it were emulating cursor keys.
Please Log in or Create an account to join the conversation.
- GM2012
- Offline
- New Member
-
- Posts: 18
- Thank you received: 0
I have my gamepad working, for now using 'simple remote pendant. All I had to do is to change some of pin names.
I've used bit newer PC, installed Ubuntu 10 and it didn't take to long to make gamepad work.
So problems I've had could either something with USB bus or something with Ubuntu 8. It would be nice that I've figured out what exactly was wrong.
Please Log in or Create an account to join the conversation.
- Rick G
-
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 155
There is a change in the naming of one pin from 2.n to 2.5 that I know of...
input.0.btn-trigger
is now
input.0.btn-joystick
Rick G
Please Log in or Create an account to join the conversation.
- GM2012
- Offline
- New Member
-
- Posts: 18
- Thank you received: 0
Having gamepad is nice but I will have to try to see what features advanced version have.
I am not using manual mode often just for simple cuts and what simple joystick control doesn't have is actual arrow button mimic or driving machine straight in X,U,Z direction.
Also I often like to use incremental machine movement in manual mode. Probably somebody already worked on those options - will have to read more.
In a way I was lucky that I couldn't make gamepad work on older PC so my replacement PC which was almost ready to go OUT is actually newer and better machine. I had an issue with
latency which was obviously related to onboard video. Than I've found old NVIDIA card, installed it and latency go from 6000-13000, very good I'd say.
So next problem that I've resolved half way is my wireless connection. I am using (again old) Realtek USB wireless dongle, installed Windows XP drivers and after some struggle managed
to connect to cable modem ... but couldn't open any web pages ... it was 2 in the morning - had to leave it for now.
As I've said I will make some writing about Logitech - it may be useful to other people.
Please Log in or Create an account to join the conversation.
- Rick G
-
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 155
Having gamepad is nice but I will have to try to see what features advanced version have.
I am not using manual mode often just for simple cuts and what simple joystick control doesn't have is actual arrow button mimic or driving machine straight in X,U,Z direction.
Also I often like to use incremental machine movement in manual mode. Probably somebody already worked on those options - will have to read more.
One way of adding incremental move is shown here, gives 3 different size incremental moves using same buttons as continuous moves.
It also uses the component "near" to make sure the move is straight and on just one axis. You will probably want to add an indicator to show what state is active, continuous or incremental as shown later in the article.
wiki.linuxcnc.org/cgi-bin/wiki.pl?Adding...imple_Remote_Pendant
The latest version that I am using uses two buttons, one for incremental mode one for continuous and beeps to indicate what mode is activated.
To avoid moving two axis accidentally with the continuous moves on the Simple Remote Pendant you can use the component "deadzone" and set it to your liking.
I believe someone also posted an axis lockout modification to avoid unwanted moves.
Rick G
Please Log in or Create an account to join the conversation.
- GM2012
- Offline
- New Member
-
- Posts: 18
- Thank you received: 0
This HAL is written for older Logitech 310. I am not sure about
btn-joystick - which switch is this pme?
old vs new logitech F310:
btn-top2 = abs-z
btn-base = btn-tl
btn-pinkie = abs-rz
btn-base2 = btn-start
btn-trigger = btn-x
btn-thumb = btn-a
btn-thumb2 = btn-b
btn-top = btn-y
and so on - anyone with new F310 can figure this out.
I assume that btn-joystick is the switch that acts when you push JOYSTICK all the way down.
New Logitech has those two as thumbl and thumbr. What is the switch on the right JOYSTICK on old Logitech?
thanks
Please Log in or Create an account to join the conversation.
- Rick G
-
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 155
and
Right joystick down is input.0.btn-base6
I find the easiest way to find the names of the buttons is to use hal watch, select all the pins and hit one button on the joypad at a time to see the effect.
Rick G
Please Log in or Create an account to join the conversation.