mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-23 17:13:47 +08:00
fix subscribe and unsubscribe to idx pin
This commit is contained in:
@@ -123,6 +123,7 @@ bool Encoder::run_index_search() {
|
||||
if (!config_.idx_search_unidirectional && axis_->motor_.config_.direction == 0) {
|
||||
axis_->motor_.config_.direction = 1;
|
||||
}
|
||||
set_idx_subscribe();
|
||||
|
||||
bool orig_finish_on_enc_idx = axis_->config_.lockin.finish_on_enc_idx;
|
||||
axis_->config_.lockin.finish_on_enc_idx = true;
|
||||
|
||||
Reference in New Issue
Block a user