From 385e8324dcfe26e09b9253d8d87b2a783f4a6093 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Mon, 23 Oct 2023 13:36:12 +0800 Subject: [PATCH] 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