请问计算中最后用到*2.0f的参数,这个数值是怎么来的?谢谢
static inline void VIENNA_readCurrVolADCSignals(void)
{
VIENNA_iL1Meas_pu = (((float32_t)(VIENNA_IL1_FB_1 + VIENNA_IL1_FB_2 +
VIENNA_IL1_FB_3 + VIENNA_IL1_FB_4)) *
VIENNA_ADC_PU_SCALE_FACTOR * 0.25f – VIENNA_iL1MeasOffset_pu ) * 2.0f;
VIENNA_iL2Meas_pu = (((float32_t)(VIENNA_IL2_FB_1 + VIENNA_IL2_FB_2 +
VIENNA_IL2_FB_3 + VIENNA_IL2_FB_4)) *
VIENNA_ADC_PU_SCALE_FACTOR * 0.25f – VIENNA_iL2MeasOffset_pu ) * 2.0f;
VIENNA_iL3Meas_pu = (((float32_t)(VIENNA_IL3_FB_1 + VIENNA_IL3_FB_2 +
VIENNA_IL3_FB_3 + VIENNA_IL3_FB_4)) *
VIENNA_ADC_PU_SCALE_FACTOR * 0.25f – VIENNA_iL3MeasOffset_pu ) * 2.0f;
VIENNA_v1Meas_pu = (((float32_t)(VIENNA_V1_FB_1 + VIENNA_V1_FB_2 +
VIENNA_V1_FB_3 + VIENNA_V1_FB_4)) *
VIENNA_ADC_PU_SCALE_FACTOR * 0.25f – VIENNA_v1MeasOffset_pu ) * 2.0f;
VIENNA_v2Meas_pu = (((float32_t)(VIENNA_V2_FB_1 + VIENNA_V2_FB_2 +
VIENNA_V2_FB_3 + VIENNA_V2_FB_4)) *
VIENNA_ADC_PU_SCALE_FACTOR * 0.25f – VIENNA_v2MeasOffset_pu ) * 2.0f;
VIENNA_v3Meas_pu = (((float32_t)(VIENNA_V3_FB_1 + VIENNA_V3_FB_2 +
VIENNA_V3_FB_3 + VIENNA_V3_FB_4)) *
VIENNA_ADC_PU_SCALE_FACTOR * 0.25f – VIENNA_v3MeasOffset_pu ) * 2.0f;
Green Deng:
你好,我会与相关工程师确认后再回复你。
,
mytieric:
谢谢,刚刚弄明白了,就是为了将【-0.5,0.5】转换到【-1,1】
,
Green Deng:
非常感谢你的反馈。