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
Using the current_position inside different custom G-Code sections does not seem to return the expected tool position
I was expecting it to return the coordinates of the previous G1 line present before evaluating the variable.
Is this the right assumption?
At a tool change, I am trying to compare the current X with a minimum limit allowed (stored in another variable) to avoid a collision before moving towards zero.
Any suggestions on how to achieve this?
I noticed that the variable is set using "unscaled()" function, but I am not sure what that does.
X shows -117.304, while I was expecting 64.482 (from the last move executed).
Project file & How to reproduce
N/A
Version
2.5.59
Operating system
windows 10
Printer model
Creality CR-10S
The text was updated successfully, but these errors were encountered:
mmm
First i though of using point_to_gcode(m_last_pos)
Then I guessyour idea of using directly the gcodewriter position is safer.
For what i have checked, it's only updated in the same thread right now.
I added the z as it's available this way.
Also added current_object_position to have the position of the current object. current_position-current_object_position should get you the old value (if there is no extruder offset)
thank you for the report & fix.
Using the current_position inside different custom G-Code sections does not seem to return the expected tool position
I was expecting it to return the coordinates of the previous G1 line present before evaluating the variable.
Is this the right assumption?
At a tool change, I am trying to compare the current X with a minimum limit allowed (stored in another variable) to avoid a collision before moving towards zero.
Any suggestions on how to achieve this?
I noticed that the variable is set using "unscaled()" function, but I am not sure what that does.
X shows -117.304, while I was expecting 64.482 (from the last move executed).
Project file & How to reproduce
N/A
Version
2.5.59
Operating system
windows 10
Printer model
Creality CR-10S
The text was updated successfully, but these errors were encountered: