Hi, I have a code working perfectly with a outrunner motor, controlled with field oriented control(FOC). My task is to run a inrunner motor with the same code as a baseline, but the inrunner motor will only turn 20 degrees and then stop, draining 0.6A constantly. Have tried to solve this for several days now and cant find the problem. They have different encoders. The only signals I have from the motor is incremental outputs A and B from the encoder. Unfortunately I cant share any code due to contract with a company. Of course I don't expect anyone to solve the problem right away with so little info, but I will be very grateful if anyone have an idea of what could be causing this behavior.