Skip to content

Commit

Permalink
fix(motor-control): only add a delay before disengaging motor if ebra…
Browse files Browse the repository at this point in the history
…ke exists (#734)

* fix(head): engage head ebrake at boot (#732)

* fix(motor-control): z stage falls after being disengaged (#733)

* only adds delay if there is an ebrake
  • Loading branch information
ahiuchingau authored Nov 28, 2023
1 parent 886ae96 commit de7fbaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions motor-control/firmware/stepper_motor/motor_hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ void MotorHardware::activate_motor() {
void MotorHardware::deactivate_motor() {
if (pins.ebrake.has_value()) {
gpio::set(pins.ebrake.value());
motor_hardware_delay(10);
}
motor_hardware_delay(10);
gpio::reset(pins.enable);
Expand Down

0 comments on commit de7fbaf

Please sign in to comment.