Error in tool_offsetview.py

More
08 May 2024 03:05 #300091 by rodw
Replied by rodw on topic Error in tool_offsetview.py
I have not read the whole thread but you may be able to borrow a trick from the plasma setup I worked out years ago. If movement under external offsets and gcode/jogging are mutually exclusive (eg movement is either external offsets or conventional motion, but never both), you can set
OFFSET_AV_RATIO = 0.5 and double the axis velocity and acceleration setings in the ini file. This is how qtplasmac works.

The result of this will be both motion and external offsets will have 100% of the desired velocity and accelleration.

Good luck!
The following user(s) said Thank You: cmorley

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

More
17 May 2024 16:46 #300845 by MarkoPolo
I have corrected the "brushed_metal_color" style file
Set new gcode style, status warning colors, slider warning colors, fonts...
 
Attachments:
The following user(s) said Thank You: tommylight

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

More
18 May 2024 05:37 #300889 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Pushed to master. Thank you.

Did you notice the EditorBase has one more property?

qproperty-styleColorCursor: white;

As for my qtdragon_mpg experiment - I added a way to pre-select the probe routine and only actually run it when the cycle start button is pressed.
Same thing with the MDI entry line; in MDI mode if the MDI widget has a red outline (focus selected) then cycle start will run the command.

The focus selection maybe should cancel when the modes are changed or the 'MPG Scroll' button is not checked.
i would like to get to the point that the machine doesn't move unless cycle start is pressed.
Just not sure if enough people will like it that way.
Could make it settings selectable.

Chris

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

More
19 May 2024 23:52 #300981 by MarkoPolo
qproperty-styleColorCursor: white;
Yes, I saw this in one of the threads. You did it for someone, but it's good that you remind us of it. I will use this next time I update the theme.

I see you did it qtaxis. I don't feel comfortable testing this without real MPG. I think that the option to choose in the settings would be best, so that it would be unnoticeable to people who do not use MPG.


Quite often I put a lot of dots in the file name, qtdragon does not want to open such files, can something be done about it?
(Axis opens such files normally)

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

More
20 May 2024 01:11 #300982 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
QtAxis uses selectable MPG scrolling but not cycle start selection.
I guess if the user didn't want it, they could change the user selection color to white or light gray, so it not noticeable. I'm not sure many people use QtAxis.

Here is the pull request for multiple periods removal:

github.com/LinuxCNC/linuxcnc/pull/1082

I see I never got an answer why multiple periods caused crashes.

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

More
20 May 2024 16:41 - 21 May 2024 11:26 #301015 by MarkoPolo
Regarding the dots problem.
I changed the dot limit to 10 in qt_action.py
 "if os.path.basename(fname).count('.') > 10:"
Also in qtdragon_handler.py
" if os.path.basename(filename).count('.') > 10:" , and everything works normally. I haven't noticed any negative effects so far.
It is possible that such restrictions are no longer necessary.

(on Debian 12 it was enough to change only the handler file)
edition
(I tested something wrong, changing the qt_action.py file on Debian 12 is also necessary)

 
Last edit: 21 May 2024 11:26 by MarkoPolo.

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

More
22 May 2024 05:39 #301131 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
I think I understand the original problem, fixed it and removed the restriction.
It can be reinstated with an INI switch if wanted.

Pushed to master.
The following user(s) said Thank You: tommylight, MarkoPolo

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

More
22 May 2024 18:17 #301157 by MarkoPolo
Another thing that seems to make no sense is the limitation of previewing to files that are 20MB in size. (In axis there is no limit)
To load my file, I doubled the file size in glcanon.py, like this: " self.max_file_size = min(system_memory_gb, 20) * 1024 * 1024 * 2".
The file loading time with and without preview is identical. There is no difference in moving, rotating or enlarging the preview.
Attachments:

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

More
23 May 2024 03:12 #301178 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Curious - AXIS uses the same code.
Could you add some prints to the code and see if system_memory_bytes get set differently on AXIS vrs QtDragon?

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

More
23 May 2024 06:59 #301181 by MarkoPolo
ah, ok. You're right, there is no preview in axis either. (first I doubled the value in glcanon.py and then checked in axis)

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

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