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.

InstalSPIN_FOC中waitTime的单位问题



在instalspin-foc状态机的waitTime参数中 的单位,有点不明白,请教一下:

比如如下图所示的EST_State_Rs,定子电感估计阶段的状态。

user.c中的设置代码:

pUserParams->RsWaitTime[EST_Rs_State_RampUp] = (uint_least32_t)( 1.0 * USER_EST_FREQ_Hz);
pUserParams->RsWaitTime[EST_Rs_State_Coarse] = (uint_least32_t)( 2.0 * USER_EST_FREQ_Hz);
pUserParams->RsWaitTime[EST_Rs_State_Fine] = (uint_least32_t)( 7.0 * USER_EST_FREQ_Hz);

   我不明白的是,这里(uint_least32_t)( 1.0 * USER_EST_FREQ_Hz)单位为什么对应的是秒(s)

   因为根据公式推导,根据自己工程中的参数,得到的USER_EST_FREQ_Hz值为:

   USER_EST_FREQ_Hz=10000

  谢谢……