odriverobotics / ODrive

High performance motor control
https://odriverobotics.com
MIT License
2.89k stars 1.5k forks source link

Add option to ignore endstops during encoder index search #748

Open aaronjamt opened 3 months ago

aaronjamt commented 3 months ago

This is useful for devices where the endstop is pressed while power is off, due to gravity, springs, or otherwise. When combined with #747, this allows the ODrive to start up the motors and perform the encoder index search while one of the endstops is pressed. With this setting enabled, the limit switch will not cause the motor to disarm during the encoder index search, making the odrive.axis*.config.startup_encoder_index_search flag useful again.