Browse Source

update

moveToEndTestVersion
zhaohe 11 months ago
parent
commit
aca47889c7
  1. 3
      usrc/module/tmc_motor_group.cpp

3
usrc/module/tmc_motor_group.cpp

@ -198,7 +198,8 @@ void TmcMotorGroup::fn_pump_rotate(ProcessContext* cxt) {
motor(GET_PARAM(0))->enable(false);
motor(GET_PARAM(0))->refreshcfg();
motor(GET_PARAM(0))->enable(true);
motor(GET_PARAM(0))->rotate(velocity);
// motor(GET_PARAM(0))->rotate(velocity);
motor(GET_PARAM(0))->moveToEnd(velocity, abs(velocity));
zcanbus_send_ack(cxt->packet, NULL, 0);
motorErrorFlag_set(GET_PARAM(0), false);

Loading…
Cancel
Save