请教TMDSHVMTRPFCKIT(v2.0)问题!
1.程序定義GLOBAL_Q 是Q24,能否請教一下為何指定是Q24?如果變成Q25或Q26會有其它差異嗎?
2.求park Angle時,有幾行程序不太懂
_IQsinPU(park1.Angle)
#if GLOBAL_Q == 24
#define _IQsinPU(A) _IQ24sinPU(A)
#define _IQ24sinPU(A) sin((A)*6.283185307)
請問這裡為什麼是乘上2pi的數值?
谢谢!
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.
请教TMDSHVMTRPFCKIT(v2.0)问题!
1.程序定義GLOBAL_Q 是Q24,能否請教一下為何指定是Q24?如果變成Q25或Q26會有其它差異嗎?
2.求park Angle時,有幾行程序不太懂
_IQsinPU(park1.Angle)
#if GLOBAL_Q == 24
#define _IQsinPU(A) _IQ24sinPU(A)
#define _IQ24sinPU(A) sin((A)*6.283185307)
請問這裡為什麼是乘上2pi的數值?
谢谢!