- Posts: 574
- Thank you received: 96
Сustomization QTvcp
- hottabich
- Offline
- Platinum Member
-
Less
More
6 years 6 months ago #163460
by hottabich
Сustomization QTvcp was created by hottabich
There is no Max_velocity_override adjustment in the Qtvcp interface. I added a panel. The slider adjusts the speed correctly, but I can’t adjust the percent. Status max_vel_ovr vibran.
Please tell me what is wrong.
Please tell me what is wrong.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
6 years 6 months ago #163488
by cmorley
Replied by cmorley on topic Сustomization QTvcp
In Qtvcp (and others screens), max velocity is in absolute units per minute, not percent.
You could build what you want but it would require python programming.
Chtis
You could build what you want but it would require python programming.
Chtis
The following user(s) said Thank You: hottabich
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
-
Less
More
- Posts: 22011
- Thank you received: 7491
6 years 6 months ago #163499
by tommylight
Replied by tommylight on topic Сustomization QTvcp
Changed the name? Going for witnes protection?cmorley wrote: In Qtvcp (and others screens), max velocity is in absolute units per minute, not percent.
You could build what you want but it would require python programming.
Chtis
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
6 years 6 months ago #163502
by cmorley
Replied by cmorley on topic Сustomization QTvcp
oops -you figured it out!
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- hottabich
- Offline
- Platinum Member
-
Less
More
- Posts: 574
- Thank you received: 96
6 years 6 months ago - 6 years 6 months ago #163515
by hottabich
Replied by hottabich on topic Сustomization QTvcp
Can you do something with this? The question is closed. I assigned the necessary speeds to the buttons and everything works. Thanks for the consultation!
Last edit: 6 years 6 months ago by hottabich.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
6 years 6 months ago #163529
by cmorley
Replied by cmorley on topic Сustomization QTvcp
To add a max velocity slider.
add a QSlider with designer called 'mvPercent'
then in your handler file:
add a QSlider with designer called 'mvPercent'
then in your handler file:
Code:
def initialized__(self):
self.w.mvPercent.setMaximum(100)
STAT.connect('max-velocity-override-changed', lambda w, data: self.w.mvPercent.setValue((data / INFO.MAX_TRAJ_VELOCITY)*100))
self.w.mvPercent.valueChanged.connect(self.setMVPercentValue)
#####################
# GENERAL FUNCTIONS #
#####################
def setMVPercentValue(self, value):
ACTION.SET_MAX_VELOCITY_RATE(INFO.MAX_TRAJ_VELOCITY * (value/100.0))
The following user(s) said Thank You: hottabich
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 1.083 seconds