From 385e8324dcfe26e09b9253d8d87b2a783f4a6093 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Mon, 23 Oct 2023 13:36:12 +0800 Subject: [PATCH 1/3] update --- components/step_motor_ctrl_module/step_motor_ctrl_module.cpp | 3 +++ components/zprotocols/zcancmder_v2 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp b/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp index 5688ce1..280af17 100644 --- a/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp +++ b/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp @@ -758,6 +758,9 @@ int32_t StepMotorCtrlModule::motor_move_to(int32_t tox, int32_t motor_velocity, if (acc == 0) { acc = m_param.acc; } + if(motor_velocity == 0){ + motor_velocity = m_param.maxspeed; + } m_thread.start( [this, tox, motor_velocity, acc]() { diff --git a/components/zprotocols/zcancmder_v2 b/components/zprotocols/zcancmder_v2 index 0da1095..3144ce2 160000 --- a/components/zprotocols/zcancmder_v2 +++ b/components/zprotocols/zcancmder_v2 @@ -1 +1 @@ -Subproject commit 0da1095ad399f7acbe11f2f5ba166b84268c1df6 +Subproject commit 3144ce2a8f3088e7d2123e2dfb3248ef6857a478 From be168ebd3a831549ee0d819cb1e0a9fe52be2239 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Mon, 23 Oct 2023 13:37:28 +0800 Subject: [PATCH 2/3] update --- components/zprotocols/zcancmder_v2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/zprotocols/zcancmder_v2 b/components/zprotocols/zcancmder_v2 index 3144ce2..954ebe4 160000 --- a/components/zprotocols/zcancmder_v2 +++ b/components/zprotocols/zcancmder_v2 @@ -1 +1 @@ -Subproject commit 3144ce2a8f3088e7d2123e2dfb3248ef6857a478 +Subproject commit 954ebe494698e757482e0e92836c20aa0b5b34ee From 7761b744cc64ab82b57530b3f96cf79a1e107703 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Mon, 23 Oct 2023 13:54:50 +0800 Subject: [PATCH 3/3] update --- components/zprotocols/zcancmder_v2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/zprotocols/zcancmder_v2 b/components/zprotocols/zcancmder_v2 index 954ebe4..8e25fdb 160000 --- a/components/zprotocols/zcancmder_v2 +++ b/components/zprotocols/zcancmder_v2 @@ -1 +1 @@ -Subproject commit 954ebe494698e757482e0e92836c20aa0b5b34ee +Subproject commit 8e25fdb5531524562b8c7907237b688a76b4c2e4