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/Kinematics/CoreXYKinematics.cpp')
-rw-r--r--src/Movement/Kinematics/CoreXYKinematics.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Movement/Kinematics/CoreXYKinematics.cpp b/src/Movement/Kinematics/CoreXYKinematics.cpp
index 55258509..8ff27a88 100644
--- a/src/Movement/Kinematics/CoreXYKinematics.cpp
+++ b/src/Movement/Kinematics/CoreXYKinematics.cpp
@@ -34,6 +34,13 @@ void CoreXYKinematics::MotorStepsToCartesian(const int32_t motorPos[], const flo
}
}
+// Return true if the specified endstop axis uses shared motors.
+// Used to determine whether to abort the whole move or just one motor when an endstop switch is triggered.
+bool CoreXYKinematics::DriveIsShared(size_t drive) const
+{
+ return drive == X_AXIS || drive == Y_AXIS;
+}
+
// Calculate the movement fraction for a single axis motor
float CoreXYKinematics::MotorFactor(size_t drive, const float directionVector[]) const
{