From 52a6d57704b1f18476e059c1c3778cd76c82dc25 Mon Sep 17 00:00:00 2001 From: "D.R.racer" Date: Tue, 7 Sep 2021 07:49:54 +0200 Subject: [PATCH] Remove Motion::Home completely --- src/modules/motion.cpp | 4 ---- src/modules/motion.h | 3 --- tests/unit/logic/stubs/stub_motion.cpp | 6 +++--- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/modules/motion.cpp b/src/modules/motion.cpp index a352b99..67b3d4c 100644 --- a/src/modules/motion.cpp +++ b/src/modules/motion.cpp @@ -44,10 +44,6 @@ void Motion::StallGuardReset(Axis axis) { axisData[axis].drv.ClearStallguard(axisParams[axis].params); } -// TODO: not implemented -void Motion::Home(Axis axis, bool direction) { -} - void Motion::PlanMoveTo(Axis axis, pos_t pos, steps_t feed_rate, steps_t end_rate) { if (axisData[axis].ctrl.PlanMoveTo(pos, feed_rate, end_rate)) { // move was queued, prepare the axis diff --git a/src/modules/motion.h b/src/modules/motion.h index 26bcea1..30ae21f 100644 --- a/src/modules/motion.h +++ b/src/modules/motion.h @@ -101,9 +101,6 @@ public: /// clear stall guard flag reported on an axis void StallGuardReset(Axis axis); - /// Enqueue performing of homing of an axis - void Home(Axis axis, bool direction); - /// Enqueue a single axis move in steps starting and ending at zero speed with maximum /// feedrate. Moves can only be enqueued if the axis is not Full(). /// @param axis axis affected diff --git a/tests/unit/logic/stubs/stub_motion.cpp b/tests/unit/logic/stubs/stub_motion.cpp index b96f4f2..8fae076 100644 --- a/tests/unit/logic/stubs/stub_motion.cpp +++ b/tests/unit/logic/stubs/stub_motion.cpp @@ -40,9 +40,9 @@ pos_t Motion::Position(Axis axis) const { return axes[axis].pos; } -void Motion::Home(Axis axis, bool direction) { - axes[Pulley].homed = true; -} +//void Motion::Home(Axis axis, bool direction) { +// axes[Pulley].homed = true; +//} void Motion::SetMode(Axis axis, hal::tmc2130::MotorMode mode) { }