- Posts: 926
- Thank you received: 280
Keyboard re-mapping (key binding)
3 years 11 months ago #256998
by cakeslob
Replied by cakeslob on topic Keyboard re-mapping (key binding)
I did your mod in a usercommand file and tested it in axis_9axis sim. In the sim, Im not seeing the behavior on UV. The C axis kinda describes what you mean.
I think maybe it is based on your acceleration setting
I think maybe it is based on your acceleration setting
Please Log in or Create an account to join the conversation.
- slidinghawk
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 1
3 years 11 months ago #257015
by slidinghawk
Replied by slidinghawk on topic Keyboard re-mapping (key binding)
maximum speed 125.75 acceleration 750 on all axes is the same.
Please Log in or Create an account to join the conversation.
- slidinghawk
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 1
3 years 11 months ago #257016
by slidinghawk
I have a manual encoder, and switches for 6 and 4 positions. I can buy an additional LPT port and connect an encoder and switches to it. I know how to set them up in mach3, but there will be a problem with LinuxСNC.
Replied by slidinghawk on topic Keyboard re-mapping (key binding)
It sounds like the key-up events are getting lost. But I don't know how to fix that.
Is there any possibility of fitting physical jog buttons? Those would operate in the real-time layer and will be much more reliable than relying on GUI key handling.
I have a manual encoder, and switches for 6 and 4 positions. I can buy an additional LPT port and connect an encoder and switches to it. I know how to set them up in mach3, but there will be a problem with LinuxСNC.
Please Log in or Create an account to join the conversation.
3 years 11 months ago #257088
by cakeslob
Replied by cakeslob on topic Keyboard re-mapping (key binding)
yeah, i did a test with your ini stuff and its not related to accel related, but Im still not getting the same behavior, although I am doing my test differently. lets split the difference on this
I did a python and made a thing for you, and anyone else who wants to edit the keys.
in the example I used to test it out, my keys and joint numbers might be different to yours, so you need to change it back to what ever you were doing. restore axis to its original state, and try out this user command file, and we can narrow down the issue. Ive included instructions and many examples, but here is the main part
I did a python and made a thing for you, and anyone else who wants to edit the keys.
in the example I used to test it out, my keys and joint numbers might be different to yours, so you need to change it back to what ever you were doing. restore axis to its original state, and try out this user command file, and we can narrow down the issue. Ive included instructions and many examples, but here is the main part
Code:
##########################################################################################
########## MODIFYING AXIS KEYBINDING MADE EASY BUT NOT TOO EASY ##########
##########################################################################################
### this file goes into the same folder as your config
### add this line to your ini file, under the display section (without the #)
### USER_COMMAND_FILE = usercommand_keybind.py
### unbind a key first (if needed), then rebind to your new thing, for example
### the down key is unbound
####### root_window.unbind('<Down>')
# then rebind it to your new command
# root_window.bind('<Down>', select_next)
#### this is for binding axis jog keys , the number at the end is the joint
# bind right and left keys to joint 0, usually x
# bind_axis("Right", "Left", 0)
# bind down and up keys to joint 1, usually y
# bind_axis("Down", "Up", 1)
The following user(s) said Thank You: slidinghawk
Please Log in or Create an account to join the conversation.
Time to create page: 0.054 seconds