Browse Source

update

master
zhaohe 1 year ago
parent
commit
189fd81c7b
  1. 1
      components/tmc/ic/ztmc5130.cpp

1
components/tmc/ic/ztmc5130.cpp

@ -306,6 +306,7 @@ int32_t TMC51X0::to_motor_pos(int32_t pos) { //
int32_t TMC51X0::to_user_pos(int32_t pos) { // int32_t TMC51X0::to_user_pos(int32_t pos) { //
int32_t val = pos / m_onecirclepulse * m_scale / m_scale_deceleration + 0.5; int32_t val = pos / m_onecirclepulse * m_scale / m_scale_deceleration + 0.5;
// ZLOGI("TMC5130", "to_user_pos %d,%d", pos, val);
return val; return val;
} // } //
int32_t TMC51X0::to_user_vel(int32_t vel) { // int32_t TMC51X0::to_user_vel(int32_t vel) { //

Loading…
Cancel
Save