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

Motor control [field weakening] #191

Open
mcuby opened this issue Nov 19, 2023 · 0 comments
Open

Motor control [field weakening] #191

mcuby opened this issue Nov 19, 2023 · 0 comments

Comments

@mcuby
Copy link

mcuby commented Nov 19, 2023

Hi. There is a strange entry in the calculations for field weakening

`template <class T_IN, class T_MID, class T_MID2, class T_OUT, int MAX_AD_SCL>
void Decoupling_T_ap_fixed(
T_OUT& Vd_decoup, T_OUT& Vq_decoup, T_MID Id, T_MID Iq, T_IN Vd, T_IN Vq, T_IN RPM, T_OUT RPM_to_speed) {
#pragma HLS INLINE

const T_MID2 Ls = COMM_MOTOR_PARA_LD;
const T_MID2 FAI_M = COMM_MOTOR_PARA_FAI_M;
T_MID2 Flux_decoup, Torque_decoup;

Flux_decoup = Vd + RPM_to_speed * RPM * (Ls * Iq);
Torque_decoup = Vq - RPM_to_speed * RPM * ((Ls * Id) + FAI_M);

Vd_decoup = Flux_decoup;
Vd_decoup = 0;
Vq_decoup = Torque_decoup;

}`

Why first Vd_decoup = Flux_decoup; and after Vd_decoup = 0;? Isn't this a mistake?

What equation did you use to field weakening?

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