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.

TMSF28035 IQ math 應用問題



 你好我看IQ math 資料

x= KP*(ud_init*COS(2*pi*r/125)+uq_init*SIN(2*pi*r/125));

這串數學式轉換成
 

input=_IQ24(2*pi*r/125);
sin_out =(_IQ24sin(input))>>24;
cos_out=(_IQ24cos(input))>>24;

x = KP * (ud_init * cos_out + uq_init * sin_out);

參考IQ math 資料設定想問這樣的設定對嗎?