You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, in Printrun 2.1.0, there are send and send_now methods as part of printcore.py.
These methods are non-blocking, which means when you send a G0 ... command to move to a certain position, the method returns immediately without waiting for the printer to finish the movement.
Could blocking versions of these commands be implemented? Is it even possible given the communication protocol? Of course you can calculate a rough estimate of the time it needs to move by dividing the distance by the move rate (in mm/min), but that is not the same as a blocking version of these methods.
The text was updated successfully, but these errors were encountered:
There are no blocking methods like this. However, there is a synchronization command M400. M400 will not complete until all moves are done, so sending two M400s in a row will let you check for completion by seeing if queue is empty.
For related work, see #990 and #1008 which implements a very similar thing but needs to be rebased because it's drifted away from the current state of the code.
Hello, in Printrun 2.1.0, there are
send
andsend_now
methods as part ofprintcore.py
.These methods are non-blocking, which means when you send a
G0 ...
command to move to a certain position, the method returns immediately without waiting for the printer to finish the movement.Could blocking versions of these commands be implemented? Is it even possible given the communication protocol? Of course you can calculate a rough estimate of the time it needs to move by dividing the distance by the move rate (in mm/min), but that is not the same as a blocking version of these methods.
The text was updated successfully, but these errors were encountered: