From aca47889c7d5c6ab69ed3d37739b304b6b68b2cf Mon Sep 17 00:00:00 2001 From: zhaohe Date: Tue, 10 Sep 2024 20:38:54 +0800 Subject: [PATCH] update --- usrc/module/tmc_motor_group.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usrc/module/tmc_motor_group.cpp b/usrc/module/tmc_motor_group.cpp index fe387a5..b5aa993 100644 --- a/usrc/module/tmc_motor_group.cpp +++ b/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);