Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Movement/RawMove.cpp')
-rw-r--r--src/Movement/RawMove.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/Movement/RawMove.cpp b/src/Movement/RawMove.cpp
index e0d68dc8..451817c6 100644
--- a/src/Movement/RawMove.cpp
+++ b/src/Movement/RawMove.cpp
@@ -293,16 +293,18 @@ void MovementState::SaveOwnAxisCoordinates() noexcept
move.InverseAxisAndBedTransform(coords, currentTool);
}
+// Update changed coordinates of some owned axes - called after G92
+void MovementState::OwnedAxisCoordinatesUpdated(AxesBitmap axesIncluded) noexcept
+{
+ axesIncluded.Iterate([this](unsigned int bitNumber, unsigned int count)->void
+ { lastKnownMachinePositions[bitNumber] = coords[bitNumber]; }
+ );
+}
+
// Update the machine coordinate of an axis we own - called after Z probing
-void MovementState::UpdateOwnedAxisCoordinate(size_t axis, float coordinate) noexcept
+void MovementState::OwnedAxisCoordinateUpdated(size_t axis) noexcept
{
- coords[axis] = coordinate;
-#if SUPPORT_ASYNC_MOVES
- if (axesAndExtrudersOwned.IsBitSet(axis))
- {
- lastKnownMachinePositions[axis] = coordinate;
- }
-#endif
+ lastKnownMachinePositions[axis] = coords[axis];
}
void AsyncMove::SetDefaults() noexcept