QtPyVCP - Adding additional actions - FRO + and - Button

More
08 Dec 2019 20:34 #152340 by Donb9261
Sliders work with mouse entry well but when you have gloved hands or greasy fingers(I like French Fries) it can be a challenge to slide the slider on a touch screen.

I do not know if someone has already posted a similar addition to the machine_actions.py file but here goes my attempt to throw back some of the love from you guys helping an old bastard like me out.

In your machine_actions.py (in the /home/YOUR_USERNAME/.local/lib/python2.7/site-packages/qtpyvcp) you can add the following lines to the:

#
# FEED OVERRIDE actions
#


@staticmethod
def plus():
# Used to provide a btn method for increasing the FRO without a slider:-)
# Set btn to AutoRepeat so you can hold it down for cont decrease
"""Feed Override Increase Value"""
p_val = STAT.feedrate # Get current FRO val
CMD.feedrate(float(p_val) + .01) # Increase by 1% per press

@staticmethod
def minus():
# Used to provide a btn method for increasing the FRO without a slider:-)
# Set btn to AutoRepeat so you can hold it down for cont decrease
"""Feed Override Decrease Value"""
m_val = STAT.feedrate # Get current FRO val
CMD.feedrate(float(m_val) - .01) # Decrease by 1% per press

Just below the def set(value) method...

Place 2 action buttons on your screen and set the actions to(Respective to the action (Plus or Minus)):

machine.feed-override.plus or machine.feed-override.minus

You will need to to restart Qt using editvcp of course. And you can load your normal config with easier to use screen controls for things like this.

I suspect a similar modification for spindle and rapid overrides is possible.

Happy VCP'ing... (Screenshot below showing the 2 buttons and the DRO for the Feedrate)

Attachments:
The following user(s) said Thank You: andypugh, KCJ, Leon82, hottabich

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

More
28 Dec 2019 22:16 #153379 by Leon82
Ah, that's what auto repeat does....

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

More
28 Dec 2019 23:54 #153380 by Donb9261
Yes Sir. That's it.
The following user(s) said Thank You: Leon82

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

Moderators: KCJLcvette
Time to create page: 0.100 seconds
Powered by Kunena Forum