Duet3D / RepRapFirmware

OO C++ RepRap Firmware
GNU General Public License v3.0
945 stars 535 forks source link

Machine Z axis position report incorrect #921

Closed dc42 closed 1 year ago

dc42 commented 1 year ago

The machine position reported in the object model is out of date immediately after executing M400 following a G1 move. To reproduce, after homing, run this macro:

G1 Z2
G1 Z20 F300
M400
echo "Z machine position is",move.axes[2].machinePosition

The position reported by the echo command is les than 20.000. This is probably because the machine position it not updated if it's been updated within the last 200ms.

This also affects the reported position immediately after a homing or probing move.

Original report: https://forum.duet3d.com/topic/33834/minor-problem-with-access-to-object-model-after-g1-commands

dc42 commented 1 year ago

Fixed in 3.5-dev source.