Save position etc. to a restore point. Note that restore point coordinates are not affected by workplace coordinate offsets. This allows them to be used in resume.g.
| 4746 | // Save position etc. to a restore point. |
| 4747 | // Note that restore point coordinates are not affected by workplace coordinate offsets. This allows them to be used in resume.g. |
| 4748 | void GCodes::SavePosition(const GCodeBuffer& gb, unsigned int restorePointNumber) noexcept |
| 4749 | { |
| 4750 | MovementState& ms = GetMovementState(gb); |
| 4751 | ms.SavePosition(restorePointNumber, numVisibleAxes, gb.LatestMachineState().feedRate, gb.GetJobFilePosition()); |
| 4752 | } |
| 4753 | |
| 4754 | // Restore user position from a restore point. Also restore the laser power, but not the spindle speed (the user must do that explicitly). |
| 4755 | // Currently this is only called to restore position after simulation. |
no test coverage detected