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.

关于Example_posspeed.c 單純想使用t法的部分

根據https://e2echina.ti.com/question_answer/microcontrollers/c2000/f/56/p/70567/169616#pi58711=2這篇文章

我想用28335控制一顆3極對的電動機搭載2048ppr的編碼器,額定轉速為3000rpm

我修改了Example_posspeed.h中的mech_scaler從原本16775,改為8191 = ((0.9999/(4*2048)*2 ^26)),

以及將pole_pairs改為3,那請問SpeedScaler以及BaseRpm是否需要修改。

若將以上幾點修改完,我是否不管電動機轉速,

我都能從SpeedRpm_fr獲取M法計算出的速度,

以及SpeedRpm_pr獲得T法算出的速度,

僅差在QCPRDLAT值高速下=SpeedRpm_fr,低速下=SpeedRpm_pr嗎?

謝謝