// ------------------------------------------------------------------------------
// Measure phase currents, subtract the offset and normalize from (-0.5,+0.5) to (-1,+1).
// Connect inputs of the CLARKE module and call the clarke transformation macro
// ------------------------------------------------------------------------------
clarke1.As = _IQmpy2(_IQ12toIQ(AdcResult.ADCRESULT1)-offsetA); // Phase A curr.
clarke1.Bs = _IQmpy2(_IQ12toIQ(AdcResult.ADCRESULT2)-offsetB); // Phase B curr.
这是代码中clarke变换部分
请问减去偏差值之后为什么还要乘以2呢
如果乘以2,clarke模块的输入不就变成clarke1.As = 2xIa;clarke1.Bs = 2xIb了吗
难道不应该是clarke1.As = Ia;clarke1.Bs = Ibma