This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28335: The problem of calculation method of electric angle.

Part Number: TMS320F28335


Dear all:

One of my customer has a question about calculation method of electric angle.

v.ElecTheta = (v.PolePairs*v.MechTheta) -floor(v.PolePairs*v.MechTheta); /* Q24 = Q0*Q24 */

In the above procedure, why is the electric angle calculated in this way?

Just multiply the polar logarithm by the mechanical angle? What does it mean to subtract another floor (v.polepairs * v.mechtheta) from the program?

Best regards