Hi Team,
I'm working on a motor drive project and saw speedcalc.h in the universal SDK. I want to use this library.
I see that this library uses radians, but my program uses pu values. I made the following changes, I would like to know if my changes are correct?
My code:
The input of theta is electrical angle (pu value 0~1).
Interrupt frequency 20kHz (50us)
I expect to be able to get the output out (pu value) of the speed, I know that the maximum electrical frequency needs to be added here. But I don't know how to do it.
I used to calculate the speed using: speed (pu value) = angle increment / (time * maximum electrical frequency)
Currently I run this code and out doesn't show the correct speed. Do you have any comments on this?
Thanks
Jenson