[Home]Super Simple Method For Controlling With A USB Joypad

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Tutorial on installing a remote pendent on linuxCNC using [qjoypad]

Summary: qjoypad is a utility that takes joypad button and joystick movements and turns them into keyboard strokes. These keyboard commands can be used to control linuxCNC. This tutorial shows how to install and configure qjoypad for linuxCNC.

installing qjoypad

qjoystick can be installed either by building the source code, or by downloading a binary file. The binary can be downloaded [here] however qjoypad has several dependencies that must be installed as well, so adding a repository and using apt-get is recommended.

  1. Install the repository GPG key:
    wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
  2. Add the following line to /etc/apt/sources.list by typing:
    1. sudo gedit /etc/apt/sources.list
    2. then add the following line to the file:
      deb http://archive.getdeb.net/ubuntu/ lucid-getdeb games
    3. save the file.
  3. Update the package index:
    sudo apt-get update
  4. Install qjoypad deb package:
    sudo apt-get install qjoypad joystick

The final command installs qjoystick and the joystick kernel module, a required dependency which does not get installed by default.

Configuring qjoypad

This video provides most of the information on configuring qjoypad provided below. [LinuxCNC with USB controller]

Now you have qjoypad installed, start it either by typing qjoypad or by running it from the applications menu. Now plug in your joypad. Right click on the joypad icon in the system tray, a menu will appear. From that menu click update joystick devices. NOTE: your computer might need to be restarted before this will work. Now left click on the system tray icon. It should open a window like this:

Click on the quick set button. The menus should guide you through configuration.

When you are done save by clicking the update button and typing in a name.

It is recommended that you go back and change the threshold values for the joysticks (axis) on the controller so they aren't as sensitive.

AXIS command keys

[AXIS Keyboard Shortcuts]

note that qjoypad will not use multiple key shortcuts (uppercase shortcuts included) to get around this a button must be set to SHIFT, another to CTL, ETC

This tutorial is in large part based off of this video which provides most of the information on configuring qjoypad. [LinuxCNC with USB controller]


LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions
Last edited August 31, 2013 1:32 am by Nebk (diff)
Search:
Published under a Creative Commons License