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