QtDragon interesting progress calculation

More
18 Apr 2022 15:04 #240567 by myval
I am running a gcode of significant length and got interesting percentage on the progress.
 

not really a functional issue at all.
Attachments:

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

More
18 Apr 2022 16:31 #240572 by tommylight
LOL
Last i have seen that was over 20 years ago while copying some stuff on a windows PC, it went to 163%! :)

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

More
18 Apr 2022 20:25 #240586 by myval
Yeah there is definitely some bug in progress calculation in qtdragon :-)
It actually end up 195% 

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

More
18 Apr 2022 22:28 #240600 by tommylight

It actually end up 195% 

You win! :)

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

More
19 Apr 2022 08:27 #240635 by cmorley
My guess is you use subroutines.

Qtdragon just reads how many lines are in the file and reads linuxcnc's idea of what line it is on.

Subroutines can change the line number to something unrelated to the main program and screw up the calculation.

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

More
19 Apr 2022 14:53 #240659 by persei8
QtDragon does not calculate progress. It reports the value received from the gcode_viewer widget percentDone signal.

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

More
19 Apr 2022 19:24 #240675 by myval
well I don't know of any subroutines at all it is just straight gcode out of fusion360. one tool no tool changes no tool breakage checking.
I can post the code tomorrow if you guys wanna have a look.

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

More
19 Apr 2022 21:31 #240685 by cmorley

QtDragon does not calculate progress. It reports the value received from the gcode_viewer widget percentDone signal.
 

Yes of course you are right. I used qtdragon interchangeably with qtvcp. Qtvcp does the calculation.

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

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