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

Method GetProportionDone

src/Movement/DDA.cpp:1432–1438  ·  view source on GitHub ↗

Return the proportion of the extrusion in the complete multi-segment move that has already been done. The move was either not started or was aborted.

Source from the content-addressed store, hash-verified

1430// Return the proportion of the extrusion in the complete multi-segment move that has already been done.
1431// The move was either not started or was aborted.
1432float DDA::GetProportionDone() const noexcept
1433{
1434 // Get the proportion of extrusion already done at the start of this segment
1435 return (filePos != noFilePosition && filePos == prev->filePos)
1436 ? prev->proportionDone
1437 : 0.0;
1438}
1439
1440// Free up this DDA, returning true if the lookahead underrun flag was set
1441bool DDA::Free() noexcept

Callers 5

ReadMoveMethod · 0.45
PauseMovesMethod · 0.45
LowPowerOrStallPauseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected