Сustomization QTvcp

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.
Attachments:

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

More
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
The following user(s) said Thank You: hottabich

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

More
6 years 6 months ago #163499 by tommylight
Replied by tommylight on topic Сustomization QTvcp

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

Changed the name? Going for witnes protection?
:)

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

More
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.

More
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!
Attachments:
Last edit: 6 years 6 months ago by hottabich.

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

More
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:
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: 0.330 seconds
Powered by Kunena Forum