SYNOPSIS
loadusr shuttle [DEVICE …]
DESCRIPTION
Shuttle es un componente HAL en tiempo no-real que interconecta dispositivos ShuttleXpress, ShuttlePRO y ShuttlePRO2 de Contour Design con el HAL de LinuxCNC.
Si el controlador es iniciado sin argumentos de línea de comandos sondeará todos los archivos de dispositivo /dev/hidraw* para dispositivos Shuttle, y usará todos los dispositivos encontrados. Si se inicia con argumentos de línea de comandos, solo sondeará los dispositivos especificados.
El ShuttleXpress tiene cinco botones momentáneos, una perilla de trote de 10 conteos/revolución con pasos, y una perilla externa de resorte de 15 posiciones que regresa al centro al soltarla.
El ShuttlePRO tiene 13 botones momentáneos, una perilla de trote de 10 conteos/revolución con pasos, y una perilla externa de resorte de 15 posiciones que regresa al centro al soltarla.
El ShuttlePRO2 tiene 15 botones momentáneos, una perilla de trote de 10 conteos/revolución con pasos, y una perilla externa de resorte de 15 posiciones que regresa al centro al soltarla.
UDEV
The shuttle driver needs read permission to the Shuttle devices' /dev/hidraw* device files. This can be accomplished by adding a file /etc/udev/rules.d/99-shuttle.rules, with the following contents:
SUBSYSTEM=="hidraw", ATTRS\{idVendor}=="0b33",
ATTRS\{idProduct}=="0020", MODE="0444"
SUBSYSTEM=="hidraw", ATTRS\{idVendor}=="05f3",
ATTRS\{idProduct}=="0240", MODE="0444"
SUBSYSTEM=="hidraw", ATTRS\{idVendor}=="0b33",
ATTRS\{idProduct}=="0030", MODE="0444"
The LinuxCNC Debian package installs an appropriate udev file automatically, but if you are building LinuxCNC from source and are not using the Debian packaging, you’ll need to install this file by hand. If you install the file by hand you’ll need to tell udev to reload its rules files by running udevadm control --reload-rules.
A warning about the Jog Wheel
The Shuttle devices have an internal 8-bit counter for the current jog-wheel position. The shuttle driver can not know this value until the Shuttle device sends its first event. When the first event comes into the driver, the driver uses the device’s reported jog-wheel position to initialize counts to 0. This means that if the first event is generated by a jog-wheel move, that first move will be lost.
Cualquier interacción del usuario con el dispositivo Shuttle generará un evento, informando al controlador la posición de la perilla de trote. De tal manera que, si (por ejemplo) presionas uno de los botones al inicio, la perilla de trote funcionará bien y notarás el primer clic.
Pines
All HAL pin names are prefixed with shuttle followed by the index of the device (the order in which the driver found them), for example shuttle.0 or huttle.2.
- (prefix).button-(number) (bit out)
- (prefix).button-(number)-not (bit out)
-
The momentary buttons. "(number)" identifies which button corresponds to the HAL pin. The "button-(number)" pins are True when the button is pushed, the "button-(number)-not" pins are True when the button is not pushed.
- (prefix).counts (s32 out)
-
Conteo acumulado de la perilla de trote (la perilla interior).
- (prefix).spring-wheel-s32 (s32 out)
-
La deflexión actual de la perilla con resorte (la perilla exterior). Es 0 en reposo, y va de -7 en el extremo en sentido antihorario, a +7 en el extremo en sentido horario.
- (prefix).spring-wheel-f (float out)
-
The current deflection of the spring-wheel (the outer wheel). It’s 0.0 at rest, -1.0 at the counter-clockwise extreme, and +1.0 at the clockwise extreme. (The Shuttle devices report the spring-wheel position as an integer from -7 to +7, so this pin reports only 15 discrete values in its range.)