Remove Motion::Home completely

pull/120/head
D.R.racer 2021-09-07 07:49:54 +02:00 committed by DRracer
parent dea41738a5
commit 52a6d57704
3 changed files with 3 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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) {
}