GAMEPAD problem

More
10 Dec 2012 01:48 #27466 by GM2012
Replied by GM2012 on topic GAMEPAD problem
I am using 8.04 hardy:

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.

More
10 Dec 2012 05:02 #27474 by BigJohnT
Replied by BigJohnT on topic GAMEPAD problem
Pncconf is not dependent on the Ubuntu version. It is included in LinuxCNC 2.5, I'm not sure if it is in 2.4 or not. Open a terminal window and type in pncconf and see if it pops up.

John

Please Log in or Create an account to join the conversation.

More
10 Dec 2012 07:20 #27481 by GM2012
Replied by GM2012 on topic GAMEPAD problem
Not knowing how to resolve this issue I've taken another spare PC and installed Ubuntu 10.4 and that moved me a bit.
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.

More
10 Dec 2012 19:49 #27501 by andypugh
Replied by andypugh on topic GAMEPAD problem
I think that the problem here might be that you are trying to install the joystick as a Ubuntu device, and you really want to install it as a LinuxCNC/HAL device.

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.

More
12 Dec 2012 02:37 #27597 by GM2012
Replied by GM2012 on topic GAMEPAD problem
Thanks to all for help.

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.

More
12 Dec 2012 16:49 #27611 by Rick G
Replied by Rick G on topic GAMEPAD problem
Glad to hear you got it worked out.

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.

More
12 Dec 2012 23:26 - 12 Dec 2012 23:27 #27633 by GM2012
Replied by GM2012 on topic GAMEPAD problem
Actually, buttons 1-4 on Logitech F310 are all different but all is easy once THE THING is recognized and working - so I've changed those.
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.
Last edit: 12 Dec 2012 23:27 by GM2012.

Please Log in or Create an account to join the conversation.

More
14 Dec 2012 20:47 #27725 by Rick G
Replied by Rick G on topic GAMEPAD problem
Glad to hear you are getting it sorted out.

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.

More
17 Dec 2012 08:14 #27792 by GM2012
Replied by GM2012 on topic GAMEPAD problem
Link that points to "adding new features ...."
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.

More
17 Dec 2012 18:11 #27797 by Rick G
Replied by Rick G on topic GAMEPAD problem
Left joystick down on mine is input.0.btn-base5
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.

Time to create page: 0.093 seconds
Powered by Kunena Forum