libdsp: initialize flux_link in params, remove flux_link from pmsm_phy_params

This commit is contained in:
raiden00pl
2022-02-19 21:10:09 +01:00
committed by Xiang Xiao
parent ca4790c429
commit 1366e14192
6 changed files with 21 additions and 18 deletions
+4 -5
View File
@@ -294,9 +294,8 @@ struct foc_data_b16_s
struct motor_phy_params_b16_s
{
uint8_t p; /* Number of the motor pole pairs */
b16_t res; /* Phase-to-neutral temperature compensated
* resistance
*/
b16_t flux_link; /* Flux linkage */
b16_t res; /* Average phase-to-neutral resistance */
b16_t ind; /* Average phase-to-neutral inductance */
b16_t one_by_ind; /* Inverse phase-to-neutral inductance */
b16_t one_by_p; /* Inverse number of motor pole pairs */
@@ -308,7 +307,6 @@ struct pmsm_phy_params_b16_s
{
struct motor_phy_params_b16_s motor; /* Motor common PHY */
b16_t iner; /* Rotor inertia */
b16_t flux_link; /* Flux linkage */
b16_t ind_d; /* d-inductance */
b16_t ind_q; /* q-inductance */
b16_t one_by_iner; /* One by J */
@@ -467,7 +465,8 @@ b16_t motor_angle_e_get_b16(FAR struct motor_angle_b16_s *angle);
/* Motor physical parameters */
void motor_phy_params_init_b16(FAR struct motor_phy_params_b16_s *phy,
uint8_t poles, b16_t res, b16_t ind);
uint8_t poles, b16_t res, b16_t ind,
b16_t fluxlink);
/* PMSM physical parameters functions */