Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong calculation in V/F mode #1

Open
robokamran opened this issue Sep 29, 2021 · 0 comments
Open

Wrong calculation in V/F mode #1

robokamran opened this issue Sep 29, 2021 · 0 comments

Comments

@robokamran
Copy link

Hi, I've just used your lib, it's a cool implementation and thank you for that.
However specially in V/F mode, I cannot understand the purpose of this line of code:
ptSVPWM->fAngRad += M_Pi;
TBH I still don't know about the Clark mode/input, I mean if the addition is necessary after this:
ptSVPWM->fAngRad = atan2f(ptSVPWM->fUbe, ptSVPWM->fUal);
But in V/F the input angle is supposed to be in range [0,2pi] and this line breaks it. So when I remove it or replace it after the Clark atan2f calculation, the V/F mode starts to actually work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant