Skip to content

Commit

Permalink
do not enable ebrake for z
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Dec 6, 2024
1 parent 71ea8b2 commit 65ecd9b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class MotorTask {
}

auto stop_motors(uint32_t id = 0) -> void {
_z_controller.stop_movement(id, true);
_z_controller.stop_movement(id, false);
_x_controller.stop_movement(id, false);
_l_controller.stop_movement(id, false);
_move_queue.reset();
Expand Down Expand Up @@ -372,9 +372,6 @@ class MotorTask {
// if there's a next move in the queue, start it
controller_from_id(next_move.motor_id).start_move(next_move);
} else {
if (m.motor_id == MotorID::MOTOR_Z) {
policy.disable_motor(m.motor_id);
}
send_ack_message(controller_from_id(m.motor_id).get_response_id());
}
}
Expand Down

0 comments on commit 65ecd9b

Please sign in to comment.