Zero out input_vel after homing sequence finds endstop.

This commit is contained in:
PAJohnson
2021-05-04 22:00:43 -04:00
parent 1dc87e8f14
commit 31e525ab65
+2
View File
@@ -392,6 +392,8 @@ bool Axis::run_homing() {
}
stop_closed_loop_control();
controller_.input_vel_ = 0.0f;
error_ &= ~ERROR_MIN_ENDSTOP_PRESSED; // clear this error since we deliberately drove into the endstop