Tool/software:
I am working on a project where I am using my own hardware circuit to drive a motor.
When using the instaspin_labs routine, the motor worked fine using lab1-lab11,
but starting from lab11, the motor stopped turning properly. The motor vibrates back and forth, and the current becomes very large.
The 6 mosfets also become very hot. I tried changing several parameters, but none of them solved the problem.
What should I do?
Attached is my user.h file