|
|
@ -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); |
|
|
|