Keybinding help

More
10 years 10 months ago #66971 by Shalotek
Replied by Shalotek on topic Keybinding help
While I understand what you are saying with the hal pins that's not the way I wanna do it lol
There are already keybinds for what I want except feed override so it shouldn't be a problem to add two keys to control that from my jog wheel I just need to know where the code is that controls the jog feed slider so I can implement the feed override keybinds

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

More
10 years 10 months ago #66975 by andypugh
Replied by andypugh on topic Keybinding help

mgenton wrote: While I understand what you are saying with the hal pins that's not the way I wanna do it lol

Don't complain when it all goes horribly wrong, then....

There are already keybinds for what I want except feed override

Actually, feed override is mapped to the 1 to 0 keys, with 0 being 100%

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

More
10 years 10 months ago - 10 years 10 months ago #66976 by Shalotek
Replied by Shalotek on topic Keybinding help
Yes but I want to control it incrementally like the other feed overrides at 1% increments

EDIT*
in filesystem/usr/share/axis/tcl i found axis.tcl

this is for Angular jog

frame ${pane_top}.ajogspeed
label ${pane_top}.ajogspeed.l0 -text [_ "Jog Speed:"]
label ${pane_top}.ajogspeed.l1
scale ${pane_top}.ajogspeed.s -bigincrement 0 -from .06 -to 1 -resolution .020 -showvalue 0 -variable ajog_slider_val -command update_ajog_slider_vel -orient h -takefocus 0
label ${pane_top}.ajogspeed.l -textv jog_aspeed -width 6 -anchor e
pack ${pane_top}.ajogspeed.l0 -side left
pack ${pane_top}.ajogspeed.l -side left
pack ${pane_top}.ajogspeed.l1 -side left
pack ${pane_top}.ajogspeed.s -side right
bind . <less> [regsub %W [bind Scale <Left>] ${pane_top}.ajogspeed.s] #this line
bind . <greater> [regsub %W [bind Scale <Right>] ${pane_top}.ajogspeed.s] #and this line

I took those two lines and added them to the feed override below changed the keybinds and the scale name problem solved

i will post the details later once i get the arduino code wrote and all tested untill then i hope this helps someone
Last edit: 10 years 10 months ago by Shalotek.

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

Time to create page: 0.046 seconds
Powered by Kunena Forum