Browse Source

v1205 | 上电默认失能驱动器

master
zhaohe 3 months ago
parent
commit
6b904776ca
  1. 3
      sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp
  2. 2
      usrc/version.h

3
sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp

@ -25,7 +25,7 @@ void StepMotorCtrlModule::initialize(int moduleid, TMC51X0* stepM, ZGPIO iotable
m_state.has_move_to_zero = 0;
step_motor_active_cfg();
step_motor_enable(true);
step_motor_enable(false);
TMC51X0* tmcmotor = dynamic_cast<TMC51X0*>(m_stepM1);
if (tmcmotor) {
@ -866,7 +866,6 @@ int32_t StepMotorCtrlModule::step_motor_move_to_zero_point_quick(int32_t speedle
return 0;
}
//
int32_t StepMotorCtrlModule::getnowpos(int32_t& x) {
if (m_cfg.motor_enable_enc == 0) {

2
usrc/version.h

@ -1,2 +1,2 @@
#pragma once
#define APP_VERSION 1204
#define APP_VERSION 1205
Loading…
Cancel
Save