[Emc-users] Joypad pendant, hal_input errors

2011-10-05 Thread John A. Stewart
Hi all; After reading some of the messages on this list, I went out and purchased a wired joypad; it is giving me the following messages when I run: halcmd loadusr hal_input -KRAL GASIA Unexpected event EV_ABS ABS_48 Unexpected event EV_ABS ABS_49 Unexpected event EV_ABS ABS_50 Unexpected

Re: [Emc-users] Joypad pendant, hal_input errors

2011-10-05 Thread Sebastian Kuzminsky
On Oct 5, 2011, at 16:18 , John A. Stewart wrote: Hi all; After reading some of the messages on this list, I went out and purchased a wired joypad; it is giving me the following messages when I run: halcmd loadusr hal_input -KRAL GASIA Unexpected event EV_ABS ABS_48 Unexpected

Re: [Emc-users] Joypad pendant, hal_input errors

2011-10-05 Thread John A. Stewart
Hi Sebastian; Thanks for the reply, and the ideas. I'm new to EMC, so there is a lot to figure out still. What device is this, exactly? lsinput: /dev/input/event3 bustype : BUS_USB vendor : 0x54c product : 0x268 version : 273 name: GASIA CORP. PLAYSTATION(R)3 Cont

Re: [Emc-users] Joypad pendant, hal_input errors

2011-10-05 Thread Przemek Klosowski
On Wed, Oct 5, 2011 at 6:45 PM, Sebastian Kuzminsky s...@highlab.com wrote: Unexpected event EV_ABS ABS_48 Unexpected event EV_ABS ABS_49 That's because the EMC HID driver hal_input doesn't handle all data from your USB device. The regular kernel HID driver defines the EV_ABS events with

Re: [Emc-users] Joypad pendant, hal_input errors

2011-10-05 Thread Sebastian Kuzminsky
On 10/05/2011 10:39 PM, Przemek Klosowski wrote: On Wed, Oct 5, 2011 at 6:45 PM, Sebastian Kuzminskys...@highlab.com wrote: Unexpected event EV_ABS ABS_48 Unexpected event EV_ABS ABS_49 That's because the EMC HID driver hal_input doesn't handle all data from your USB device. The regular

[Emc-users] Joypad button to tell axis to move?

2011-02-17 Thread Igor Chudov
I have a Saitek P880 joypad. It works REALLY great to do the following: 1) Control X, Y and Z with joyhandles (little levers sticking out of the joypad) 2) Make some buttons like input.0.btn-pinkie to control HAL pins to give HAL pause and resume commands. The nice thing is that depending on how

Re: [Emc-users] Joypad button to tell axis to move?

2011-02-17 Thread andy pugh
On 17 February 2011 21:39, Igor Chudov ichu...@gmail.com wrote: In other words: when I press a certain button, I want a given axis to start moving in a given direction at a predetermined speed. When I release that button, I want movement to stop. How can I set that up. Look at the mux4

Re: [Emc-users] Joypad button to tell axis to move?

2011-02-17 Thread Ed Nisley
On Thu, 2011-02-17 at 13:39 -0600, Igor Chudov wrote: I would like to use regular joypad buttons I did that with my Logitech gamepad: the joysticks do gradual motion and the buttons do on-off motion. This should get you started:

Re: [Emc-users] Joypad question.

2010-12-16 Thread Spiderdab
Message - From: Spiderdab77...@tiscali.it To:Emc-users@lists.sourceforge.net Sent: Thursday, December 16, 2010 1:23 AM Subject: [Emc-users] Joypad question. Hallo list. Is there a way to jog the axis in joint mode only with keyboard, while jog in world mode with the joystick? i'm using

Re: [Emc-users] Joypad question.

2010-12-16 Thread andy pugh
On 16 December 2010 11:42, Spiderdab 77...@tiscali.it wrote: something like a logical expression which read if the state of world mode is false or true? is there a pin for that? http://www.linuxcnc.org/docs/2.4/html/man/man1/halui.1.html (Look at the halui.mode pins) what do you mean about :

Re: [Emc-users] Joypad question.

2010-12-16 Thread Spiderdab
Il 16/12/2010 13:07, andy pugh ha scritto: On 16 December 2010 11:42, Spiderdab77...@tiscali.it wrote: something like a logical expression which read if the state of world mode is false or true? is there a pin for that? http://www.linuxcnc.org/docs/2.4/html/man/man1/halui.1.html (Look at

Re: [Emc-users] Joypad question.

2010-12-16 Thread andy pugh
On 16 December 2010 13:00, Spiderdab 77...@tiscali.it wrote: the on e wich should interest me is _teleop? right? than i'm not sure if the joint mode is _joint or _manual. what's the difference? It might be easiest to watch them in Show HAL Config and see what they do. -- atp Torque wrenches

Re: [Emc-users] Joypad question.

2010-12-16 Thread Spiderdab
Il 16/12/2010 14:35, andy pugh ha scritto: On 16 December 2010 13:00, Spiderdab77...@tiscali.it wrote: the on e wich should interest me is _teleop? right? than i'm not sure if the joint mode is _joint or _manual. what's the difference? It might be easiest to watch them in Show HAL Config

Re: [Emc-users] Joypad question.

2010-12-16 Thread Spiderdab
Alex, i've a question for you, since, if i'm not wrong, you wrote down the tripodkins.c . have you ever tried to jog into world mode the tripod with a joystick? did it work? i'm asking about this thing everywhere, but nobody can tell me if it work or not with a non-trivial kinematics. thanks

Re: [Emc-users] Joypad question.

2010-12-16 Thread Alex Joni
is still in development/testing phase, so use with caution. Regards, Alex - Original Message - From: Spiderdab 77...@tiscali.it To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Thursday, December 16, 2010 5:04 PM Subject: Re: [Emc-users] Joypad question

Re: [Emc-users] Joypad question.

2010-12-16 Thread Spiderdab
Il 16/12/2010 16:21, Alex Joni ha scritto: Hi Davide, that's a question that's a bit hard to answer. I remember doing it, but that was around emc2 - 2.1 or even older. In the current versions (due to some bugfixes), I think this is prevented. Can't remember the reason though. I know it

[Emc-users] Joypad question.

2010-12-15 Thread Spiderdab
Hallo list. Is there a way to jog the axis in joint mode only with keyboard, while jog in world mode with the joystick? -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your

Re: [Emc-users] Joypad question.

2010-12-15 Thread Alex Joni
To: Emc-users@lists.sourceforge.net Sent: Thursday, December 16, 2010 1:23 AM Subject: [Emc-users] Joypad question. Hallo list. Is there a way to jog the axis in joint mode only with keyboard, while jog in world mode with the joystick

Re: [Emc-users] joypad quit working when upgrading from 2.3.5 to 2.4

2010-05-19 Thread Mark Wendt
Looks like this is your problem: Debug file information: Can not find -sec EMC -var NML_FILE -num 1 Unrecognized line skipped: POC FMS LEN DIAMCOMMENT standard_pinout.hal:22: Warning: linkpp command is deprecated, use 'net' HAL: ERROR: pin_new called after hal_ready

Re: [Emc-users] joypad quit working when upgrading from 2.3.5 to 2.4

2010-05-19 Thread Jeff Epler
The hal_joystick component was deprecated in emc 2.2[1] and was intended to be removed in emc 2.4. Instead, use hal_input[2], which will require additional modifications to joypad.hal due to different pin names. hal_input, which has existed since emc2.2, supports more devices than hal_joystick,

Re: [Emc-users] joypad quit working when upgrading from 2.3.5 to 2.4

2010-05-19 Thread kirk
On 05/19/2010 10:15 AM, Jeff Epler wrote: The hal_joystick component was deprecated in emc 2.2[1] and was intended to be removed in emc 2.4. Instead, use hal_input[2], which will require additional modifications to joypad.hal due to different pin names. hal_input, which has existed since

Re: [Emc-users] joypad quit working when upgrading from 2.3.5 to 2.4

2010-05-19 Thread kirk
On 05/19/2010 03:52 AM, Mark Wendt wrote: Looks like this is your problem: Debug file information: Can not find -sec EMC -var NML_FILE -num 1 Unrecognized line skipped: POC FMS LEN DIAMCOMMENT standard_pinout.hal:22: Warning: linkpp command is deprecated, use 'net' HAL:

Re: [Emc-users] Joypad ?

2009-07-07 Thread Brian Mihulka
Chris, I followed the wiki at http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?A_New_Approach_For_Using_Joypads_With_EMC2 and I couldn't get the joystick to be found by any name I tried. Then I found that HALUI = halui must be before the HALFILE directive in the ini file and everything worked

[Emc-users] Joypad ?

2009-07-06 Thread sani.broy...@free.fr
Hi all. Anybody using a USB joypad that works ? Regards. -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users

Re: [Emc-users] Joypad ?

2009-07-06 Thread Rainer Schmidt
I use the one from the picture on the wiki... I followed the installation procedure and it worked of the bat. I got mine from ebay for $7... I edited the wrong hal file and it got overridden again with a reconfig lol I was to lazy to set it up again... As I recall it was not a big deal to get

Re: [Emc-users] Joypad ?

2009-07-06 Thread sani.broy...@free.fr
It doesn't work at all, despite I followed the procedure line by line. Pins are not named the same, hal_joystick or hal input doesn't work despite this joypad is the same as pictured and is perfectely used by all probe progs using /dev/input/js0. I can't believe you when you say It worked out

Re: [Emc-users] Joypad ?

2009-07-06 Thread Stephen Wille Padnos
sani.broy...@free.fr wrote: It doesn't work at all, despite I followed the procedure line by line. What does not work? You need to tell us step by step what you are doing, what you expect to see, and what you actually see. Pins are not named the same, Then change the names of the pins on

Re: [Emc-users] Joypad ?

2009-07-06 Thread Eric H. Johnson
Sani, I used the instructions below to get both a Logitech and Sony gamepad to work. The only real trick as far as I remember was making sure to use a recognizable portion of the name (i.e. replacing SAITEK from the instructions).

Re: [Emc-users] Joypad ?

2009-07-06 Thread Rainer Schmidt
Then I am a happy liar who jogs his machine with his JoyPad When I get to the shop later I'll post my hal file edits and the message from Linux when it finds my pad. I might shoot a quick movie how it jogs so you have to stop calling me a liar and I can start calling you dumbass! Why should I

Re: [Emc-users] Joypad ?

2009-07-06 Thread sani.broy...@free.fr
I wasn't saying that, sorry Rainer. I copied/pasted the file, got a ton of errors :-) So the example given in the wiki was not, for sure, usable as is :-) Dumbass is not in my translator. Could you explain ? ;-) Regards, Chris. Le lundi 6 juillet 2009 19:19:51, Rainer Schmidt a écrit : Then

Re: [Emc-users] Joypad ?

2009-07-06 Thread Rainer Schmidt
No, cut and paste does not work But following the steps works. I did not attempt cut and paste. Dumbass: Si je suis un menteur, alors vous êtes un con haha 8) I'll send the files later Have to deal with many 'Con' today on the phone On Mon, Jul 6, 2009 at 3:06 PM,

Re: [Emc-users] Joypad ?

2009-07-06 Thread John Thornton
Mine works flawlessly... John On 6 Jul 2009 at 18:34, sani.broy...@free.fr wrote: Hi all. Anybody using a USB joypad that works ? Regards. -- ___ Emc-users

Re: [Emc-users] Joypad ?

2009-07-06 Thread sani.broy...@free.fr
Lucky you :-) Regards, Chris. Le mardi 7 juillet 2009 00:17:16, John Thornton a écrit : Mine works flawlessly... John On 6 Jul 2009 at 18:34, sani.broy...@free.fr wrote: Hi all. Anybody using a USB joypad that works ? Regards.

Re: [Emc-users] Joypad ?

2009-07-06 Thread Frank Tkalcevic
Everything was neat and clear until I tried the proposed .hal file to integrate the Joypad in axis. Nothing appends, or tombstone sometimes. I found that out the hard way too. It only takes a small change in your .ini file or .hal file and you can no longer use shared hal files. It's an

Re: [Emc-users] Joypad ?

2009-07-06 Thread sani.broy...@free.fr
I'm trying hard :-) Thanks for your advices. Too late (1.28 AM) to go on tonight, I'll experience debug modes tomorrow. Regards, Chris Le mardi 7 juillet 2009 01:12:00, Frank Tkalcevic a écrit : Everything was neat and clear until I tried the proposed .hal file to integrate the Joypad in

Re: [Emc-users] Joypad as a pendant - help?

2009-04-18 Thread Peter blodow
Hello John, please look at the time setting of your PC. I received this mail with sending date 17.04.2004! Peter Blodow At 14:25 17.04.2004, you wrote: On 17 Apr 2009 at 1:06, Michael Jones wrote: Does anyone have a good example of a HAL file for a joypad that I can build on. This

[Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
Does anyone have a good example of a HAL file for a joypad that I can build on. Here's what I want to do with a basic Logitech usb gamepad.. Use the left stick to control x axis, the right stick to control the y axis, and the Hat to control the z axis. (I want one stick, one axis, 'cause

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread John Thornton
On 17 Apr 2009 at 1:06, Michael Jones wrote: Does anyone have a good example of a HAL file for a joypad that I can build on. This should get you going. http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant John

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Kirk Wallace
On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the knowledgebase as a initial attempt, but am having a slight problem. When I let go of the stick on the pad the axis keeps going.. UHOH! ;-) I've looked at the other scripts in the

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Kirk Wallace
On Fri, 2009-04-17 at 10:48 -0700, Kirk Wallace wrote: On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the knowledgebase as a initial attempt, but am having a slight problem. When I let go of the stick on the pad the axis keeps going..

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
When I use this setup, I get a response to the command: loadusr -W hal_input -KRAL name I've replaced the name with everything I can think of.. including various permutations of quotes and the like and get this every time.Somehow the hal stuff isn't recognizing the name of the device

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Alex Joni
On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the knowledgebase as a initial attempt, but am having a slight problem. When I let go of the stick on the pad the axis keeps going.. UHOH! ;-) I've looked at the other scripts in the

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
Kirk, That looks promising.. I'll try inserting that into the Hal. Thanks, - Michael On Apr 17, 2009, at 11:13 AM, Kirk Wallace wrote: On Fri, 2009-04-17 at 10:48 -0700, Kirk Wallace wrote: On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
When I use: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?HereIsHowToCheck I get the (-value...0...value) sequence when I move the sticks. On Apr 17, 2009, at 11:17 AM, Alex Joni wrote: On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
Kirk, Hey! That worked perfectly! Thanks! I inserted: setp axis.0.jog-vel-mode TRUE setp axis.1.jog-vel-mode TRUE setp axis.2.jog-vel-mode TRUE into the hal file right after the: setp axis.0.jog-enable TRUE setp axis.1.jog-enable TRUE setp axis.2.jog-enable TRUE commands and now when I let

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Kirk Wallace
On Fri, 2009-04-17 at 21:17 +0300, Alex Joni wrote: ... snip What you are reffering to is valid for MPGs, not for joysticks. (there counts are remembered, and if you stop spinning, the machine might still move to get to the count you intended). For joysticks you need to see what each axis

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Alex Joni
Oops, that makes more sense. So it's more like an ADC interface. I guess I need to actually install one sometime. Well, there are 2 ways of interfacing the joystick. The older one, (which I don't think is that good) is taking the output from the joystick, using a stepgen to generate

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
Uniq= cannot be used // Lars -Original Message- From: Michael Jones [mailto:ma...@michaelandholly.com] Sent: den 17 april 2009 20:17 To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Joypad as a pendant - help? When I use this setup, I get a response to the command

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Alexey Starikovskiy
Alex Joni wrote: Oops, that makes more sense. So it's more like an ADC interface. I guess I need to actually install one sometime. Well, there are 2 ways of interfacing the joystick. Well, there are 3 ways... :) Third is with X driver and remapping events into AXIS.

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Lars Andersson
: [Emc-users] Joypad as a pendant - help? When I use this setup, I get a response to the command: loadusr -W hal_input -KRAL name I've replaced the name with everything I can think of.. including various permutations of quotes and the like and get this every time.Somehow the hal

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Michael Jones
On Apr 17, 2009, at 1:11 PM, Lars Andersson wrote: Probably loadusr -W hal_input -KRAL Action this doesn't seem to work no matter what text fragment I use.. Loading by the /dev/input/js0 seems to work though.. would work also. Any text fragment from the selected properties seems to

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Stephen Wille Padnos
Michael Jones wrote: On Apr 17, 2009, at 1:11 PM, Lars Andersson wrote: Probably loadusr -W hal_input -KRAL Action this doesn't seem to work no matter what text fragment I use.. Loading by the /dev/input/js0 seems to work though.. One thing I noticed in your

Re: [Emc-users] Joypad as a pendant - help?

2009-04-17 Thread Kirk Wallace
On Sat, 2004-04-17 at 06:25 -0600, John Thornton wrote: On 17 Apr 2009 at 1:06, Michael Jones wrote: Does anyone have a good example of a HAL file for a joypad that I can build on. This should get you going. http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant

Re: [Emc-users] Joypad Example

2008-03-02 Thread Jeff Epler
On Sun, Mar 02, 2008 at 10:34:28PM -0500, Stephen Wille Padnos wrote: The reason is that there's no way to get a complete list of all joystick devices (axes and buttons) before you get the first event. If you try to enumerate all the axes first, and the joystick gets moved while you're doing

Re: [Emc-users] Joypad Example

2008-02-23 Thread ben lipkowitz
On Fri, 22 Feb 2008, Kirk Wallace wrote: Another bit I don't understand: /* STEP 3: allocate shared memory for joystick data */ js_data = (hal_js_t *) hal_malloc(sizeof(hal_js_t)); if (js_data == 0) { printf( ERROR: hal_malloc() failed\n); hal_exit(comp_id);

Re: [Emc-users] Joypad Example

2008-02-23 Thread Kirk Wallace
On Sat, 2008-02-23 at 07:52 +, ben lipkowitz wrote: On Fri, 22 Feb 2008, Kirk Wallace wrote: Another bit I don't understand: /* STEP 3: allocate shared memory for joystick data */ js_data = (hal_js_t *) hal_malloc(sizeof(hal_js_t)); if (js_data == 0) { printf( ERROR:

[Emc-users] Joypad Example

2008-02-22 Thread Kirk Wallace
I think hal_joystick.c: http://cvs.linuxcnc.org/cgi-bin/cvsweb.cgi/emc2/src/hal/user_comps/devices/hal_joystick.c?rev=1.2;content-type=text%2Fplain might be a good model to follow for making my modbus user-land component. My guess would be that one would setup HAL and the the HAL pins and then

Re: [Emc-users] Joypad Example

2008-02-22 Thread Kirk Wallace
On Fri, 2008-02-22 at 17:51 -0800, Kirk Wallace wrote: I think hal_joystick.c: http://cvs.linuxcnc.org/cgi-bin/cvsweb.cgi/emc2/src/hal/user_comps/devices/hal_joystick.c?rev=1.2;content-type=text%2Fplain might be a good model to follow for making my modbus user-land component. My guess

Re: [Emc-users] Joypad

2007-10-23 Thread John Thornton
That was the example that I was looking at. So will the HALUI be out when 2.2 is released? Thanks John On 22 Oct 2007 at 14:38, [EMAIL PROTECTED] wrote: Hello, here is a slightly out of date example: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Using_A_Joypad_To_Move_You r_CNC_Machine

Re: [Emc-users] Joypad

2007-10-22 Thread Manfredi Leto
easy way. Regards, Manfredi My websites: www.m24-pro.com www.emc2cnc.altervista.org From: [EMAIL PROTECTED] To: emc-users@lists.sourceforge.net Date: Sun, 21 Oct 2007 14:08:16 -0500 Subject: [Emc-users] Joypad Can you take a joypad apart and put

[Emc-users] Joypad

2007-10-21 Thread John Thornton
Can you take a joypad apart and put into a more solid container and use industrial buttons so you can label the functions for input into EMC. The USB input for a remote would be just too easy... Thanks John - This SF.net

Re: [Emc-users] Joypad problem with version 2.1.4

2007-03-28 Thread John Kasunich
kirk wrote: John, Thanks for all the help. The scaling factors did the trick. On the previous version of EMC 2.1.3 I had to increase the counts per second just to get the thing to move. This new version works considerably better. There is much better control over the velocity. Good

Re: [Emc-users] Joypad problem with version 2.1.4

2007-03-27 Thread John Kasunich
Kirk wrote: I am using the joypad.hal file located on the wiki. I have of course modified it for my machine. I am loading halui and using it to control various functions via buttons on the joypad. The previous version of EMC was 2.1.3 which I obtained via Ubuntu Synaptic Package Manager. I

Re: [Emc-users] Joypad problem with version 2.1.4

2007-03-27 Thread Kirk
I attached the hal file on the last message. I am also attaching it again here. The link to the file on the wiki is http://wiki.linuxcnc.org/uploads/joypad.hal Kirk On Tue, 2007-03-27 at 19:57 -0400, John Kasunich wrote: Kirk wrote: I am using the joypad.hal file located on the wiki. I

Re: [Emc-users] Joypad problem with version 2.1.4

2007-03-27 Thread John Kasunich
John Kasunich wrote: I should proofread before I hit send, not after: If countX looks OK, then its time to look at the motion controller. show pin axis.0.jog will show you the jogging related pins. jog-counts should have the same value as countX. jog-enable should be TRUE. jog-vel-mode

[Emc-users] Joypad problem with version 2.1.4

2007-03-26 Thread Kirk
I just updated my system with the latest EMC 2.1.4. Prior to that I had installed a USB joystick controller and it worked fine. After the upgrade, the analog axes joysticks no longer work properly. If I jog an axis it continues in the same direction as started and does not stop when the control