MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / SavePosition

Method SavePosition

src/GCodes/GCodes.cpp:4748–4752  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
4748void 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.

Callers 2

EmergencyStopMethod · 0.45
THROWSFunction · 0.45

Calls 1

GetJobFilePositionMethod · 0.80

Tested by

no test coverage detected