mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-02-05 22:52:02 +08:00
Ensure pos_estimate is updated at least once after homing
This commit is contained in:
@@ -431,6 +431,9 @@ bool Axis::run_homing() {
|
||||
controller_.vel_setpoint_ = 0.0f;
|
||||
controller_.input_pos_updated();
|
||||
|
||||
// Force encoder estimate to update
|
||||
osDelay(1);
|
||||
|
||||
controller_.config_.control_mode = stored_control_mode;
|
||||
controller_.config_.input_mode = stored_input_mode;
|
||||
homing_.is_homed = true;
|
||||
|
||||
Reference in New Issue
Block a user