Error in tool_offsetview.py

More
2 years 6 months ago #299085 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
What didn't work with sim_panel?
I used thwsw command after qtdragon started in another terminal:
qtvcp sim_panel &
halcmd net MPG qtdragon.mpg-in sim_panel.MPG-s

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

More
2 years 6 months ago #299086 by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
ok, I missed this "halcmd net MPG qtdragon.mpg-in sim_panel.MPG-s"

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

More
2 years 6 months ago #299197 by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
I like the "max velocity slider" slider, but it should immediately limit all speeds, including manual movements, but it does not limit manual movements.

I added 4 lines to the handler file, as in the screenshot. Only the first slider setting "MAX_VELOCITY_OVERRIDE" works, I don't know why the other slider settings don't work.

ps. I'm working on a more extensible qtdragon. I will upload the file soon.
It will be possible to stretch it to 4K (3840x3840), it doesn't look very nice at such a high resolution, but it is possible.
Attachments:

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

More
2 years 6 months ago #299257 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Try adding this function:
Code:
    def before_loop__(self):         # set defaults lower then max if wanted         DEFAULT_RAPID_OVERRIDE = float(INFO.get_error_safe_setting("DISPLAY", "DEFAULT_RAPID_OVERRIDE", .5)) * 100         ACTION.SET_RAPID_RATE(DEFAULT_RAPID_OVERRIDE)         DEFAULT_VELOCITY_OVERRIDE = float(INFO.get_error_safe_setting("DISPLAY", "DEFAULT_MAX_VELOCITY", 1800))         ACTION.SET_MAX_VELOCITY_RATE(DEFAULT_VELOCITY_OVERRIDE)
The following user(s) said Thank You: MarkoPolo

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

More
2 years 6 months ago #299269 by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
Thanks, it works fine this way.
I only changed the settings for "max_velocity_override" so that it took the max speed from the "MAX_LINEAR_VELOCITY" value
        FACTOR_VELOCITY_OVERRIDE = float(INFO.get_error_safe_setting("DISPLAY", "DEFAULT_VELOCITY_OVERRIDE"))
        DEFAULT_VELOCITY_OVERRIDE = float(INFO.get_error_safe_setting("DISPLAY", "MAX_LINEAR_VELOCITY", )) * FACTOR_VELOCITY_OVERRIDE * 60
        ACTION.SET_MAX_VELOCITY_RATE(DEFAULT_VELOCITY_OVERRIDE)

Try qtdragon with the ability to stretch to 3840x3840
Attachments:

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

More
2 years 6 months ago #299275 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
It's v e r y stretchy! I see what you mean about the look of the controls for instance when stretched.

try my rough changes to your changes
Attachments:
The following user(s) said Thank You: tommylight

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

Moderators: cmorley
Time to create page: 0.360 seconds
Powered by Kunena Forum