Set motor related parameters of PMSM struct
-
void uz_SetPoint_set_PMSM_config(uz_SetPoint_t *self, uz_PMSM_t input)
Updates the motor related parameters in the uz_PMSM_t struct.
- Parameters
self – pointer to uz_SetPoint_t object
input – uz_PMSM_t struct with new values
Example
1int main(void) {
2 uz_PMSM_t input = {
3 .R_ph_Ohm = 0.08f,
4 .Ld_Henry = 0.00027f,
5 .Lq_Henry = 0.00027f,
6 .Psi_PM_Vs = 0.0082f,
7 .polePairs = 4.0f,
8 .J_kg_m_squared = 0.00001773f,
9 .I_max_Ampere = 10.0f
10 };
11 uz_SetPoint_set_PMSM_config(SP_instance, input);
12}
Description
Updates the PMSM-parameters in the SpeedControl object to the new input values. Every value of the struct will be asserted again.