This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

电机参数识别

在proj_lab05b的宏定义改为下面所示

#define USER_MOTOR_Rs                  MY_USER_MOTOR_Rs

#define USER_MOTOR_Ls_d                MY_USER_MOTOR_Ls_d

#define USER_MOTOR_Ls_q                MY_USER_MOTOR_Ls_q

#define USER_MOTOR_RATED_FLUX        MY_USER_MOTOR_RATED_FLUX

宏定义后面的变量初始化为NULL,然后在main函数开始时再给宏定义后面的变量赋值可不可以?算法预编译期间会不会需要USER_MOTOR_Rs等的实际值?