Sample DRV fault when going to idle. Update Vds setting on DRV

This commit is contained in:
Oskar Weigl
2020-11-25 22:52:38 -08:00
parent 8765654429
commit e7ef78bcca
6 changed files with 10 additions and 6 deletions
+1
View File
@@ -417,6 +417,7 @@ bool Axis::run_homing() {
}
bool Axis::run_idle_loop() {
last_drv_fault_ = motor_.gate_driver_.get_error();
mechanical_brake_.engage();
set_step_dir_active(config_.enable_step_dir && config_.step_dir_always_on);
while (requested_state_ == AXIS_STATE_UNDEFINED) {