Hello,
I am working on sensored FOC of PMSM using hall effect sensors. I am facing a challenge in how to calculate the speed of the PMSM using a hall effect sensor, I wanted to simulate this speed calculation part using matlab simulink and generate a C code using simulink embedded code generator. Requesting for inputs on simulation of the speed calculation using hall effect sensors part.