How to change jog speed using joystick buttons (QtDragon + HAL)?

More
1 year 6 months ago #327335 by csurimilan
Hi everyone,I'm using QtDragon and a joystick (via
Code:
hal_input
) to jog my machine. Jogging works fine with a costant speed, but I’d like to adjust the jog speed using two buttons — one to increase and one to decrease the speed. (like the slider in the Qtdragon gui)
 

Please Log in to join the conversation.

More
1 year 6 months ago #327348 by cmorley
What version of linuxcnc?

Please Log in to join the conversation.

More
1 year 6 months ago #327380 by csurimilan

Please Log in to join the conversation.

More
1 year 6 months ago #327381 by csurimilan
im using a wireless xbox controller for PC. It is working fine

Please Log in to join the conversation.

More
1 year 6 months ago #327382 by csurimilan
#
# Xbox 360 Controller Mapping
#

loadusr -W hal_input -KRAL Xbox

setp halui.jog-speed 100

net jog-x-axis input.0.abs-x => halui.axis.x.analog
net jog-y-axis input.0.abs-y => halui.axis.y.analog
net jog-z-axis input.0.abs-ry => halui.axis.z.analog

# LB = Feed override -
net feed-dec input.0.btn-tl => halui.feed-override.decrease

# RB = Feed override +
net feed-inc input.0.btn-tr => halui.feed-override.increase



 

Please Log in to join the conversation.

More
1 year 5 months ago #327632 by csurimilan
Do you have an idea how can i solve this issue?

Please Log in to join the conversation.

More
1 year 5 months ago #327639 by cmorley
You could use a mux component to set halui.jog-speed.
Mux2 for 2 speeds from one button or
Mux4 for up to 4 speed from two buttons

Please Log in to join the conversation.

Time to create page: 0.089 seconds
Powered by Kunena Forum