Using a USB joystick to jog in QtDragon
- frayja2002
- Offline
- Premium Member
- Posts: 151
- Thank you received: 11
For the sake of completeness here is what I did in the end.
As I had been messing around with a lot of different things I did a fresh install.
Halui was not in the config file by default so add ...
HALUI = halui
To the [HAL] section of the ini file
Add this to the custom_postgui.hal file
loadusr -W hal_input -KRAL DragonRise
setp halui.axis.jog-speed 300
net Jog-X-Plus <= halui.axis.x.plus <= input.0.abs-x-is-pos
net Jog-X-Neg <= halui.axis.x.minus <= input.0.abs-x-is-neg
net Jog-Y-Plus <= halui.axis.y.plus <= input.0.abs-y-is-pos
net Jog-Y-Neg <= halui.axis.y.minus <= input.0.abs-y-is-neg
net Jog-Z-Plus <= halui.axis.z.plus <= input.0.btn-base6
net Jog-Z-Neg <= halui.axis.z.minus <= input.0.btn-base5
The jogging only woks after you have homed like you said (even though the jog buttons in the gui work at any time)
The next most obvious question is how can I vary the jog speed. Is there any way to link it to the gui settings?
Again thanks for you assistance.
Please Log in or Create an account to join the conversation.
There is currently no builtin way to get qtdragon's jograte, but I'll add it for next release.
If you are adventurous I could tell you how to customize the screen to add it now.
Please Log in or Create an account to join the conversation.
- frayja2002
- Offline
- Premium Member
- Posts: 151
- Thank you received: 11
Please Log in or Create an account to join the conversation.
Add these files to your config folder.
Then there should be a HAL pin named qtdragon.jog-rate
If there is a problem just remove the two files from your config folder.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- frayja2002
- Offline
- Premium Member
- Posts: 151
- Thank you received: 11
They do not seem to have any affect & cannot see the new hal pin.
How can I be sure they are being used?
Please Log in or Create an account to join the conversation.
Note the 'using DEFAULT', if it found the new files it will saying 'using LOCAL'
[QTvcp.QTVCP.QT_PSTAT][INFO] Using DEFAULT handler file path: /home/chris/emc/share/qtvcp/screens/qtdragon/qtdragon_handler.py (qt_pstat.py:97)
[QTvcp.QTVCP.QT_PSTAT][INFO] Using DEFAULT ui file from /home/chris/emc/share/qtvcp/screens/qtdragon/qtdragon.ui (qt_pstat.py:118)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- frayja2002
- Offline
- Premium Member
- Posts: 151
- Thank you received: 11
I am posting the the line seen from the terminal.
Please Log in or Create an account to join the conversation.
should be in:
/home/alex/linuxcnc/configs/Router_01/
Please Log in or Create an account to join the conversation.