Browse Source

update

master
zhaohe 2 years ago
parent
commit
385e8324dc
  1. 3
      components/step_motor_ctrl_module/step_motor_ctrl_module.cpp
  2. 2
      components/zprotocols/zcancmder_v2

3
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) { if (acc == 0) {
acc = m_param.acc; acc = m_param.acc;
} }
if(motor_velocity == 0){
motor_velocity = m_param.maxspeed;
}
m_thread.start( m_thread.start(
[this, tox, motor_velocity, acc]() { [this, tox, motor_velocity, acc]() {

2
components/zprotocols/zcancmder_v2

@ -1 +1 @@
Subproject commit 0da1095ad399f7acbe11f2f5ba166b84268c1df6
Subproject commit 3144ce2a8f3088e7d2123e2dfb3248ef6857a478
Loading…
Cancel
Save