-
Notifications
You must be signed in to change notification settings - Fork 542
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
[FEATURE] Foc_current mode and Current feed forward #317
Comments
This estimation function can also be reused in angle mode and velocity mode Now it looks like that: It could be later updated for field weakening in this way: Later, for salient motors like IPMSM, it could be updated to handle Ld and Lq: |
I think I am wrong about the feedforward: Only those values are being added as feedforward term after the PI output:
That technique is called decoupling.
|
So something like that could be done.
In loopfoc() function for all modes:
|
Nice video about the cross decoupling: |
Nice article, and the benefit we could expect: |
At the moment in voltage mode, if information like phase_resistance, phase_inductance and KV_rating are provided, q and d currents are used as target and the q and d voltages are estimated.
The foc_current could benefit from that and use those values as feedforward for the q and d PI controllers.
The q and d voltage estimation could be made a separate function not to duplicate the code.
That would probably improve the dynamics of the foc current control.
The text was updated successfully, but these errors were encountered: