|
|
@ -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) { |
|
|
|