When I use that setup and velocity is zero, the motor still wants to position itself “on the cogging point”. Which means there is a significant Iq of ~340mA at standstill, result of a nonzero Vq.
The sign of the current changes when I manually move the motor “over the hump”.
I tried that mode with digital and linear halls, but it doesn’t make a difference.
Can I set Vq to zero, when velocity/motor.target is zero? I would rather like to understand what’s the cause.
If I were in angle mode, that would be my solution, but I don't see how it helps in velocity mode?
– o_lampe