mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-21 15:34:33 +08:00
Zero out input_vel after homing sequence finds endstop.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user