Browse Source

Merge branch 'master' of 192.168.1.3:manufacturer_stm32/iflytop_stm32_os_sdk

master
zhaohe 2 years ago
parent
commit
f1a2d37c45
  1. 3
      components/step_motor_ctrl_module/step_motor_ctrl_module.cpp

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]() {

Loading…
Cancel
Save