mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-20 22:55:00 +08:00
Fix input_filter integration issues
This commit is contained in:
@@ -59,7 +59,10 @@ void Controller::start_anticogging_calibration() {
|
||||
// When pressed, set the linear count to the offset (default 0), and then
|
||||
bool Controller::home_axis() {
|
||||
if (axis_->min_endstop_.config_.enabled) {
|
||||
set_vel_setpoint(-config_.homing_speed, 0.0f);
|
||||
config_.control_mode = CTRL_MODE_VELOCITY_CONTROL;
|
||||
pos_setpoint_ = 0.0f;
|
||||
vel_setpoint_ = -config_.homing_speed;
|
||||
current_setpoint_ = 0.0f;
|
||||
axis_->homing_state_ = HOMING_STATE_HOMING;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user