Need Help finishing setup of Logitech joystick

More
14 Dec 2012 22:00 #27729 by jalbers
I have a Probotix Fireball V90 and want to use a Logitech USB joystick to control the machine. This is a breakdown of what I have done so far:

Plug In Joystick

Directory: /proc/bus/input
Look at File: devices
Partial Contents:
Bus=0003 Vendor=046d Product=c216 Version=0110
Name="Logitech Logitech Dual Action"

Directory: /etc/udev/rules.d
Created File: logitech.rules
Contents:
SYSFS{idProduct}=="c216",SYSFS{idVendor}=="046d",MODE="0660",GROUP="plugdev"

Directory: ~/linuxcnc/configs/V90
Created File: logitech.hal
Contents:
loadusr -W hal_input -KRAL Logitech

Directory: ~/linuxcnc/config/V90
Edit File: V90.ini
Partial Contents:
[HAL]
HALFILE = V90.hal
HALFILE= custom.hal
HALFILE = logitech.hal
POSTGUI_HALFILE = custom_postgui.hal

Unplug Joystick
Plug Joystick In

Start Hal Meter

Test Pin: input.0.btn-base
Returns: TRUE/FALSE

Test Pin: input.0.abs-x-position
Returns: Values a range of values between -1 and +1

Test Pin: input.0.abs-hat0x-position
Returns: -1,0,+1

The joystick appears to be working!

*** THIS IS WHERE I NEED HELP ***

I do not know what to do next to get the joystick to talk to the Axis GUI.

What needs to be done to make input.0.btn-base turn on and off the spindle for example?
What needs to be done to make input.0.abs-x-position jog the x-axis to the left or right at different speeds depending on how far left or right the joystick is moved?
What needs to be done to make input.0.abs-hat0x-position jog the x-axis to the left or right?

Any help would be greatly appreciated. Thanks

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

More
More
14 Dec 2012 23:02 #27732 by BigJohnT

*** THIS IS WHERE I NEED HELP ***

I do not know what to do next to get the joystick to talk to the Axis GUI.

What needs to be done to make input.0.btn-base turn on and off the spindle for example?
What needs to be done to make input.0.abs-x-position jog the x-axis to the left or right at different speeds depending on how far left or right the joystick is moved?
What needs to be done to make input.0.abs-hat0x-position jog the x-axis to the left or right?

Any help would be greatly appreciated. Thanks


In addition to the Rick's links...

You might want to cruise the Hal Examples here is an example of start/stop button connections in hal.

Also you will want to read the Hal Basic Tutorial .

John

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

Time to create page: 0.071 seconds
Powered by Kunena Forum