Joypad, Difference in speed x and y axis

More
19 Mar 2021 17:07 #202860 by guido-52
Hey,
I have added a joypad, after many tries through various ways it is finally happiness through the good explanation of Big John T.
wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_Remote_Pendant

I do have a different joypad and it took some searching for the other parameters, but it worked in the end.

But the y-axis and z-axis worked in the wrong direction.

As Big John T stated in the document, the addition of these lines should be helpful.
setp input.0.abs-y-scale -127.5
setp input.0.abs-ry-scale -127.5

It does, the axes are reversed, but the movement is much faster than the x axis (which is not reversed)

Any idea why that is, or how it can be concealed.

Grt,

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

More
19 Mar 2021 18:29 #202874 by tommylight
What value do you have set for
setp input.0.abs-x-scale
?

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

More
20 Mar 2021 10:09 #202956 by guido-52
Sorry, I can't find this setting anywhere.

I have followed the above document closely.
and downloaded the zip file, as said I had to adjust the files because I have a different joy-pad.
When axis finally started up as soon as I pressed one of the speed buttons the z-axis started running. The x and Y axis went well, but together with the x axis.
I then have the original
net jog-z-pre <= input.0.abs-rz-position => mux2_z.in1
Changed in
net jog-z-pre <= input.0.abs-ry-position => mux2_z.in1
Because I tested in the hall meter which was the variable for the right joystick.

Then it went well, the axes moved independently and at the same speed.
But the x and z axis moved in the wrong direction.

That's why I
- setp input.0.abs-y-scale -127.5
attached for the y-axis and
- setp input.0.abs-ry-scale -127.5
for the z axis

Both axes are then reversed, but there is a big speed difference with the X axis.
The parameter "Vel" on the asis screen changes when I x-jog, depending on the chosen speed, to 1 - 10 or 100.
While I do that for the z axis or Y-axis in 257 - 1295.455 or 1295.455

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

More
21 Mar 2021 09:11 #203090 by guido-52
I've solved the problem.
Apparently the problem was in the number of bits of the number. I've gone from 8 bits to 16.
So
- setp input.0.abs-y-scale -32767.5
- setp input.0.abs-ry-scale -32767.5
So;
and the speed was good.
The following user(s) said Thank You: Project_Hopeless

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

Time to create page: 0.066 seconds
Powered by Kunena Forum